Skip to content

Commit

Permalink
Add shareble vars file
Browse files Browse the repository at this point in the history
  • Loading branch information
mehidi258 committed Jan 27, 2022
1 parent 44a4955 commit 5c84676
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 47 deletions.
33 changes: 33 additions & 0 deletions assets/css/config/vars.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
:root {
--ep-admin-color-base-white: #fff;
--ep-admin-color-blue: #00a0d2;
--ep-admin-color-grey: #f1f1f1;
--ep-admin-color-green: #46b450;
--ep-admin-color-red: #b52727;
--ep-admin-color-dark: #333;
--ep-admin-sync-card-max-width: 1200px;

--ep-admin-box-title: #1d2327;

--ep-admin-delete-sync-button-bg-color: rgba(181, 39, 39, 0.03);

--ep-admin-progress-bar-bg-color: rgba(0, 160, 210, 0.3);

--ep-admin-output-tab-color: #1e1e1e;

--ep-admin-log-bg-color: #1a1e24;
--ep-admin-log-line-number-color: #999;
--ep-admin-log-line-number-bg-color: #303030;

--ep-search-background-color: #fff;
--ep-search-alternate-background-color: #efefef;
--ep-search-border-color: #dfdfdf;
--ep-search-range-thumb-size: 1.625em;
--ep-search-range-track-size: 0.75em;

@media ( min-width: 768px ) {
--ep-search-range-thumb-size: 1.25em;
--ep-search-range-track-size: 0.5em;
}

}
14 changes: 1 addition & 13 deletions assets/css/instant-results.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "config/vars.css";
@import "instant-results/utilities.css";
@import "instant-results/input.css";
@import "instant-results/modal.css";
Expand All @@ -12,16 +13,3 @@
@import "instant-results/sidebar-toggle.css";
@import "instant-results/sort.css";
@import "instant-results/toolbar.css";

:root {
--ep-search-background-color: #fff;
--ep-search-alternate-background-color: #efefef;
--ep-search-border-color: #dfdfdf;
--ep-search-range-thumb-size: 1.625em;
--ep-search-range-track-size: 0.75em;

@media ( min-width: 768px ) {
--ep-search-range-thumb-size: 1.25em;
--ep-search-range-track-size: 0.5em;
}
}
47 changes: 13 additions & 34 deletions assets/css/sync.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,4 @@
:root {
--ep-admin-color-base-white: #fff;
--ep-admin-color-blue-01: #00a0d2;
--ep-admin-color-grey-01: #f1f1f1;
--ep-admin-color-green-01: #46b450;
--ep-admin-color-red-01: #b52727;
--ep-admin-color-dark-01: #333;
--ep-admin-max-width: 1200px;

--ep-admin-box-title: #1d2327;

--ep-admin-delete-sync-button-bg-color: rgba(181, 39, 39, 0.03);

--ep-admin-progress-bar-bg-color: rgba(0, 160, 210, 0.3);

--ep-admin-output-tab-color: #1e1e1e;

--ep-admin-log-bg-color: #1a1e24;
--ep-admin-log-line-number-color: #999;
--ep-admin-log-line-number-bg-color: #303030;

}
@import "config/vars.css";

.elasticpress_page_elasticpress-sync .button:disabled {
cursor: not-allowed;
Expand Down Expand Up @@ -87,7 +66,7 @@
}

.ep-sync-box__output-tab_active {
border-bottom: 4px solid var(--ep-admin-color-blue-01);
border-bottom: 4px solid var(--ep-admin-color-blue);
padding-bottom: 12px;
}

Expand All @@ -100,7 +79,7 @@
}

.elasticpress_page_elasticpress-sync .card {
max-width: var(--ep-admin-max-width);
max-width: var(--ep-admin-sync-card-max-width);

& .ep-sync-box__description-actions {
display: flex;
Expand Down Expand Up @@ -168,7 +147,7 @@
}

& .ep-last-sync__date {
background-color: var(--ep-admin-color-grey-01);
background-color: var(--ep-admin-color-grey);
padding: 6px;
}

Expand All @@ -189,8 +168,8 @@
}

& .ep-sync-box__button-stop {
background-color: var(--ep-admin-color-blue-01);
border-color: var(--ep-admin-color-blue-01);
background-color: var(--ep-admin-color-blue);
border-color: var(--ep-admin-color-blue);
margin-left: 24px;
}

Expand All @@ -217,7 +196,7 @@
}

& .ep-sync-box__progressbar {
background-color: var(--ep-admin-color-grey-01);
background-color: var(--ep-admin-color-grey);
border-radius: 24px;
height: 20px;
margin: 15px 0;
Expand All @@ -232,7 +211,7 @@

& .ep-sync-box__progressbar_animated {
background-color: var(--ep-admin-progress-bar-bg-color);
color: var(--ep-admin-color-dark-01);
color: var(--ep-admin-color-dark);
display: block;
height: 100%;
margin: 0;
Expand All @@ -242,7 +221,7 @@
}

& .ep-sync-box__progressbar_complete {
background-color: var(--ep-admin-color-green-01);
background-color: var(--ep-admin-color-green);
color: var(--ep-admin-color-base-white);
}

Expand All @@ -259,12 +238,12 @@
}

& .ep-sync-box__start-time {
color: var(--ep-admin-color-blue-01);
color: var(--ep-admin-color-blue);
font-size: 14px;
}

& .ep-sync-box__start-time-date {
color: var(--ep-admin-color-dark-01);
color: var(--ep-admin-color-dark);
}
}

Expand Down Expand Up @@ -297,8 +276,8 @@

& .ep-delete-data-and-sync__button {
background-color: var(--ep-admin-delete-sync-button-bg-color);
border: 1px solid var(--ep-admin-color-red-01);
color: var(--ep-admin-color-red-01);
border: 1px solid var(--ep-admin-color-red);
color: var(--ep-admin-color-red);
margin: 5px 0 12px;
}

Expand Down

0 comments on commit 5c84676

Please sign in to comment.