Skip to content

Commit

Permalink
CSS performance speed-up by adding body tag to scheme definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Feb 28, 2021
1 parent cc0a599 commit 245ffdf
Show file tree
Hide file tree
Showing 13 changed files with 199 additions and 155 deletions.
88 changes: 44 additions & 44 deletions datepicker.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion datepicker.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 14 additions & 10 deletions src/schemes/blue.scss
@@ -1,15 +1,19 @@
/* Blue */
.admin-color-blue .ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #096484;
}
body {
&.admin-color-blue {
.ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #096484;
}

thead {
background: #4796b3;
}
thead {
background: #4796b3;
}

td .ui-state-hover {
background: #096484;
td .ui-state-hover {
background: #096484;
}
}
}
}
24 changes: 14 additions & 10 deletions src/schemes/coffee.scss
@@ -1,15 +1,19 @@
/* Coffee */
.admin-color-coffee .ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #59524c;
}
body {
&.admin-color-coffee {
.ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #59524c;
}

thead {
background: #46403c;
}
thead {
background: #46403c;
}

td .ui-state-hover {
background: #c7a589;
td .ui-state-hover {
background: #c7a589;
}
}
}
}
24 changes: 14 additions & 10 deletions src/schemes/ectoplasm.scss
@@ -1,15 +1,19 @@
/* Ectoplasm */
.admin-color-ectoplasm .ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #523f6d;
}
body {
&.admin-color-ectoplasm {
.ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #523f6d;
}

thead {
background: #413256;
}
thead {
background: #413256;
}

td .ui-state-hover {
background: #a3b745;
td .ui-state-hover {
background: #a3b745;
}
}
}
}
24 changes: 14 additions & 10 deletions src/schemes/evergreen.scss
@@ -1,15 +1,19 @@
/* Evergreen */
.admin-color-bbp-evergreen .ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #56b274;
}
body {
&.admin-color-bbp-evergreen {
.ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #56b274;
}

thead {
background: #36533f;
}
thead {
background: #36533f;
}

td .ui-state-hover {
background: #446950;
td .ui-state-hover {
background: #446950;
}
}
}
}
24 changes: 14 additions & 10 deletions src/schemes/fresh.scss
@@ -1,15 +1,19 @@
/* Fresh */
.admin-color-fresh .ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #2271b1;
}
body {
&.admin-color-fresh {
.ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #2271b1;
}

thead {
background: #2c3338;
}
thead {
background: #2c3338;
}

td .ui-state-hover {
background: #2271b1;
td .ui-state-hover {
background: #2271b1;
}
}
}
}
24 changes: 14 additions & 10 deletions src/schemes/light.scss
@@ -1,15 +1,19 @@
/* Light */
.admin-color-light .ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #8c8f94;
}
body {
&.admin-color-light {
.ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #8c8f94;
}

thead {
background: #50575e;
}
thead {
background: #50575e;
}

td .ui-state-hover {
background: #04a4cc;
td .ui-state-hover {
background: #04a4cc;
}
}
}
}
24 changes: 14 additions & 10 deletions src/schemes/midnight.scss
@@ -1,15 +1,19 @@
/* Midnight */
.admin-color-midnight .ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #363b3f;
}
body {
&.admin-color-midnight {
.ui-datepicker {
.ui-widget-header,
.ui-datepicker-header {
background: #363b3f;
}

thead {
background: #26292c;
}
thead {
background: #26292c;
}

td .ui-state-hover {
background: #e14d43;
td .ui-state-hover {
background: #e14d43;
}
}
}
}

0 comments on commit 245ffdf

Please sign in to comment.