Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
louwie17 committed Dec 4, 2024
1 parent 031625d commit a0c5fa9
Showing 1 changed file with 16 additions and 27 deletions.
43 changes: 16 additions & 27 deletions packages/base-styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@mixin heading-small() {
@include _text-heading();
font-size: $font-size-x-small;
line-height: $font-line-height--x-small;
line-height: $font-line-height-x-small;
}

@mixin heading-medium() {
Expand Down Expand Up @@ -178,18 +178,15 @@
*/

@mixin editor-left($selector) {
#{$selector} {
/* Set left position when auto-fold is not on the body element. */
#{$selector} { /* Set left position when auto-fold is not on the body element. */
left: 0;

@media (min-width: #{ ($break-medium + 1) }) {
left: $admin-sidebar-width;
}
}

.auto-fold #{$selector} {

/* Auto fold is when on smaller breakpoints, nav menu auto collapses. */
.auto-fold #{$selector} { /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */
@media (min-width: #{ ($break-medium + 1) }) {
left: $admin-sidebar-width-collapsed;
}
Expand Down Expand Up @@ -239,12 +236,12 @@

@mixin reduce-motion($property: "") {

@if $property =="transition" {
@if $property == "transition" {
@media (prefers-reduced-motion: reduce) {
transition-duration: 0s;
transition-delay: 0s;
}
} @else if $property =="animation" {
} @else if $property == "animation" {
@media (prefers-reduced-motion: reduce) {
animation-duration: 1ms;
animation-delay: 0s;
Expand All @@ -268,7 +265,6 @@
font-size: $mobile-text-min-font-size;
/* Override core line-height. To be reviewed. */
line-height: normal;

@include break-small {
font-size: $default-font-size;
/* Override core line-height. To be reviewed. */
Expand Down Expand Up @@ -451,7 +447,6 @@

// Fonts smaller than 16px causes mobile safari to zoom.
font-size: $mobile-text-min-font-size !important;

@include break-small {
font-size: $default-font-size !important;
}
Expand All @@ -469,7 +464,7 @@
* Reset the WP Admin page styles for Gutenberg-like pages.
*/

@mixin wp-admin-reset($content-container ) {
@mixin wp-admin-reset( $content-container ) {
background: $white;

#wpcontent {
Expand Down Expand Up @@ -520,8 +515,7 @@
// Focus style width.
// Avoid rounding issues by showing a whole 2px for 1x screens, and 1.5px on high resolution screens.
--wp-admin-border-width-focus: 2px;

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
@media ( -webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
--wp-admin-border-width-focus: 1.5px;
}
}
Expand Down Expand Up @@ -588,33 +582,32 @@

/* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
.has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background {
background: linear-gradient(135deg, rgba(0, 208, 132, 1) 0%, rgba(6, 147, 227, 1) 100%);
background: linear-gradient(135deg,rgba(0,208,132,1) 0%,rgba(6,147,227,1) 100%);
}

.has-purple-crush-gradient-background {
background: linear-gradient(135deg, rgb(52, 226, 228) 0%, rgb(71, 33, 251) 50%, rgb(171, 29, 254) 100%);
background: linear-gradient(135deg,rgb(52,226,228) 0%,rgb(71,33,251) 50%,rgb(171,29,254) 100%);
}

.has-hazy-dawn-gradient-background {
background: linear-gradient(135deg, rgb(250, 172, 168) 0%, rgb(218, 208, 236) 100%);
background: linear-gradient(135deg,rgb(250,172,168) 0%,rgb(218,208,236) 100%);
}

.has-subdued-olive-gradient-background {
background: linear-gradient(135deg, rgb(250, 250, 225) 0%, rgb(103, 166, 113) 100%);
background: linear-gradient(135deg,rgb(250,250,225) 0%,rgb(103,166,113) 100%);
}

.has-atomic-cream-gradient-background {
background: linear-gradient(135deg, rgb(253, 215, 154) 0%, rgb(0, 74, 89) 100%);
background: linear-gradient(135deg,rgb(253,215,154) 0%,rgb(0,74,89) 100%);
}

.has-nightshade-gradient-background {
background: linear-gradient(135deg, rgb(51, 9, 104) 0%, rgb(49, 205, 207) 100%);
background: linear-gradient(135deg,rgb(51,9,104) 0%,rgb(49,205,207) 100%);
}

.has-midnight-gradient-background {
background: linear-gradient(135deg, rgb(2, 3, 129) 0%, rgb(40, 116, 252) 100%);
background: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);
}

/* stylelint-enable @stylistic/function-comma-space-after */
}

Expand All @@ -625,20 +618,16 @@
width: 12px;
height: 12px;
}

&::-webkit-scrollbar-track {
background-color: transparent;
}

&::-webkit-scrollbar-thumb {
background-color: $handle-color;
border-radius: 8px;
border: 3px solid transparent;
background-clip: padding-box;
}

&:hover::-webkit-scrollbar-thumb,
// This needs specificity.
&:hover::-webkit-scrollbar-thumb, // This needs specificity.
&:focus::-webkit-scrollbar-thumb,
&:focus-within::-webkit-scrollbar-thumb {
background-color: $handle-color-hover;
Expand Down Expand Up @@ -670,7 +659,7 @@
outline-color: var(--wp-admin-theme-color);
outline-style: solid;
outline-width: calc(#{$widthRatio} * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));
outline-offset: calc(#{$widthRatio} * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));
outline-offset: calc(#{$widthRatio} * ((-1 * var(--wp-admin-border-width-focus) ) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));
}

@mixin selected-block-focus($widthRatio: 1) {
Expand Down

0 comments on commit a0c5fa9

Please sign in to comment.