chore: Refactor reports css for RTL (#6537)

This commit is contained in:
Sivin Varghese
2023-02-27 11:50:21 +05:30
committed by GitHub
parent 7d4e6d0257
commit bfb445186d
5 changed files with 23 additions and 25 deletions

View File

@@ -3,23 +3,23 @@
cursor: pointer;
margin: 0;
padding: $space-normal $space-small $space-normal $space-two;
padding: var(--space-normal);
&.active {
@include custom-border-top(3px, $color-woot);
@include custom-border-top(3px, var(--color-woot));
@include background-white;
.heading,
.metric {
color: $color-woot;
color: var(--color-woot);
}
}
.heading {
align-items: center;
color: $color-heading;
color: var(--color-heading);
display: flex;
font-size: $font-size-small;
font-weight: $font-weight-bold;
font-size: var(--font-size-small);
font-weight: var(--font-weight-bold);
margin: 0;
}
@@ -29,19 +29,19 @@
}
.metric-wrap {
align-items: baseline;
align-items: center;
display: flex;
}
.metric {
font-size: $font-size-big;
font-weight: $font-weight-feather;
margin-top: $space-smaller;
font-size: var(--font-size-big);
font-weight: var(--font-weight-feather);
margin-top: var(--space-smaller);
}
.metric-trend {
font-size: $font-size-small;
margin-left: $space-small;
font-size: var(--font-size-small);
margin: 0 var(--space-small);
}
.metric-up {
@@ -53,7 +53,7 @@
}
.desc {
font-size: $font-size-small;
font-size: var(--font-size-small);
margin: 0;
text-transform: capitalize;
}
@@ -62,8 +62,8 @@
.report-bar {
@include background-white;
@include border-light;
margin: -1px $zero;
padding: $space-small $space-medium;
margin: var(--space-minus-micro) 0;
padding: var(--space-small) var(--space-medium);
.chart-container {
@include flex;
@@ -76,12 +76,12 @@
.empty-state {
color: $color-gray;
font-size: $font-size-default;
margin: $space-jumbo;
font-size: var(--font-size-default);
margin: var(--space-jumbo);
}
.business-hours {
margin: $space-normal;
margin: var(--space-normal);
text-align: center;
}
}

View File

@@ -25,8 +25,7 @@
.business-hours {
align-items: center;
display: flex;
justify-content: end;
margin-bottom: var(--space-normal);
justify-content: flex-start;
margin-left: auto;
padding-right: var(--space-normal);
}

View File

@@ -6,7 +6,7 @@
:username="user.name"
:status="user.availability_status"
/>
<h6 class="text-block-title text-truncate text-capitalize">
<h6 class="text-block-title user-name text-truncate text-capitalize">
{{ user.name }}
</h6>
</div>

View File

@@ -35,8 +35,7 @@ export default {
<style lang="scss" scoped>
.csat--metric-card {
margin: 0;
padding: var(--space-normal) var(--space-small) var(--space-normal)
var(--space-two);
padding: var(--space-normal);
.heading {
align-items: center;
@@ -57,6 +56,6 @@ export default {
.csat--icon {
color: var(--b-400);
margin-left: var(--space-micro);
margin: 0 var(--space-micro);
}
</style>

View File

@@ -103,6 +103,6 @@ export default {
}
.emoji--distribution-key {
margin-right: var(--space-micro);
margin: 0 var(--space-micro);
}
</style>