chore: Refactor utility files for RTL (#6515)
* Chore: Refactor for RTL * Chore: mInor fixes * minor fixes
This commit is contained in:
@@ -16,12 +16,12 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.banner + .app-wrapper {
|
.banner + .app-wrapper {
|
||||||
.button--fixed-right-top {
|
.button--fixed-top {
|
||||||
top: 5.6 * $space-one;
|
top: 5.6 * $space-one;
|
||||||
}
|
}
|
||||||
|
|
||||||
.off-canvas-content {
|
.off-canvas-content {
|
||||||
.button--fixed-right-top {
|
.button--fixed-top {
|
||||||
top: $space-small;
|
top: $space-small;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,10 @@
|
|||||||
margin-left: var(--space-minus-slab);
|
margin-left: var(--space-minus-slab);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.margin-right-minus-slab {
|
||||||
|
margin-right: var(--space-minus-slab);
|
||||||
|
}
|
||||||
|
|
||||||
.fs-small {
|
.fs-small {
|
||||||
font-size: var(--font-size-small);
|
font-size: var(--font-size-small);
|
||||||
}
|
}
|
||||||
@@ -75,3 +79,9 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button--fixed-top {
|
||||||
|
position: fixed;
|
||||||
|
right: var(--space-small);
|
||||||
|
top: var(--space-small);
|
||||||
|
}
|
||||||
|
|||||||
@@ -50,22 +50,22 @@ $default-button-height: 4.0rem;
|
|||||||
|
|
||||||
&.secondary {
|
&.secondary {
|
||||||
border-color: var(--s-200);
|
border-color: var(--s-200);
|
||||||
color: var(--s-700)
|
color: var(--s-700);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.success {
|
&.success {
|
||||||
border-color: var(--s-200);
|
border-color: var(--s-200);
|
||||||
color: var(--g-700)
|
color: var(--g-700);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.alert {
|
&.alert {
|
||||||
border-color: var(--s-200);
|
border-color: var(--s-200);
|
||||||
color: var(--r-700)
|
color: var(--r-700);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.warning {
|
&.warning {
|
||||||
border-color: var(--s-200);
|
border-color: var(--s-200);
|
||||||
color: var(--y-700)
|
color: var(--y-700);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -116,19 +116,19 @@ $default-button-height: 4.0rem;
|
|||||||
color: var(--w-700);
|
color: var(--w-700);
|
||||||
|
|
||||||
&.secondary {
|
&.secondary {
|
||||||
color: var(--s-700)
|
color: var(--s-700);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.success {
|
&.success {
|
||||||
color: var(--g-700)
|
color: var(--g-700);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.alert {
|
&.alert {
|
||||||
color: var(--r-700)
|
color: var(--r-700);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.warning {
|
&.warning {
|
||||||
color: var(--y-700)
|
color: var(--y-700);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -205,11 +205,3 @@ $default-button-height: 4.0rem;
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// @TDOD move to utility file
|
|
||||||
.button--fixed-right-top {
|
|
||||||
position: fixed;
|
|
||||||
right: $space-small;
|
|
||||||
top: $space-small;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<section class="notification--table-wrap">
|
<section class="notification--table-wrap">
|
||||||
<woot-submit-button
|
<woot-submit-button
|
||||||
v-if="notificationMetadata.unreadCount"
|
v-if="notificationMetadata.unreadCount"
|
||||||
class="button nice success button--fixed-right-top"
|
class="button nice success button--fixed-top"
|
||||||
:button-text="$t('NOTIFICATIONS_PAGE.MARK_ALL_DONE')"
|
:button-text="$t('NOTIFICATIONS_PAGE.MARK_ALL_DONE')"
|
||||||
:loading="isUpdating"
|
:loading="isUpdating"
|
||||||
@click="onMarkAllDoneClick"
|
@click="onMarkAllDoneClick"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<router-link
|
<router-link
|
||||||
v-if="showNewButton && isAdmin"
|
v-if="showNewButton && isAdmin"
|
||||||
:to="buttonRoute"
|
:to="buttonRoute"
|
||||||
class="button success button--fixed-right-top"
|
class="button success button--fixed-top"
|
||||||
>
|
>
|
||||||
<fluent-icon icon="add-circle" />
|
<fluent-icon icon="add-circle" />
|
||||||
<span class="button__content">
|
<span class="button__content">
|
||||||
|
|||||||
@@ -107,7 +107,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<woot-submit-button
|
<woot-submit-button
|
||||||
class="button nice success button--fixed-right-top"
|
class="button nice success button--fixed-top"
|
||||||
:button-text="$t('GENERAL_SETTINGS.SUBMIT')"
|
:button-text="$t('GENERAL_SETTINGS.SUBMIT')"
|
||||||
:loading="isUpdating"
|
:loading="isUpdating"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
>
|
>
|
||||||
<router-link :to="newAgentBotsURL" class="white-text">
|
<router-link :to="newAgentBotsURL" class="white-text">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
@click="openAddPopup()"
|
@click="openAddPopup()"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
@click="openAddPopup()"
|
@click="openAddPopup()"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
@click="openAddPopup()"
|
@click="openAddPopup()"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
@click="openAddPopup"
|
@click="openAddPopup"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
@click="openAddPopup()"
|
@click="openAddPopup()"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<woot-button
|
<woot-button
|
||||||
v-if="showAddButton"
|
v-if="showAddButton"
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
@click="openAddHookModal"
|
@click="openAddHookModal"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="row content-box full-height">
|
<div class="row content-box full-height">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
@click="openCreatePopup"
|
@click="openCreatePopup"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="row content-box full-height">
|
<div class="row content-box full-height">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
@click="openAddPopup"
|
@click="openAddPopup"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="add-circle"
|
icon="add-circle"
|
||||||
@click="openAddPopup"
|
@click="openAddPopup"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<router-link
|
<router-link
|
||||||
:to="addAccountScoping('settings/macros/new')"
|
:to="addAccountScoping('settings/macros/new')"
|
||||||
class="button success button--fixed-right-top"
|
class="button success button--fixed-top"
|
||||||
>
|
>
|
||||||
<fluent-icon icon="add-circle" />
|
<fluent-icon icon="add-circle" />
|
||||||
<span class="button__content">
|
<span class="button__content">
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
/>
|
/>
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="arrow-download"
|
icon="arrow-download"
|
||||||
@click="downloadReports"
|
@click="downloadReports"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="arrow-download"
|
icon="arrow-download"
|
||||||
@click="downloadAgentReports"
|
@click="downloadAgentReports"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<woot-button
|
<woot-button
|
||||||
color-scheme="success"
|
color-scheme="success"
|
||||||
class-names="button--fixed-right-top"
|
class-names="button--fixed-top"
|
||||||
icon="arrow-download"
|
icon="arrow-download"
|
||||||
@click="downloadReports"
|
@click="downloadReports"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user