Skip to content

Commit

Permalink
fix: various stylelint fixes based on `stylelint ./resources/scss/**/…
Browse files Browse the repository at this point in the history
…*.scss --fix`
  • Loading branch information
chrispelzer committed Oct 8, 2024
1 parent 7a21143 commit 88e6b54
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion resources/scss/components/_external-icon.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.external-icon {
content: '(external link)';
display: inline-block;
background-color: currentColor;
background-color: currentcolor;
mask-image: url('/_resources/images/external-link.svg');
mask-repeat: no-repeat;
mask-position: center;
Expand Down
10 changes: 5 additions & 5 deletions resources/scss/components/_flickity.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ button.flickity-button.flickity-prev-next-button.next::after {
background: transparent;
transform-origin: 0, 0;
z-index: -1;
background-color: rgba(5, 33, 30, 0.4);
background-color: rgb(5 33 30 / 40%);
}

button.flickity-button.flickity-prev-next-button.next::after {
Expand All @@ -16,7 +16,7 @@ button.flickity-button.flickity-prev-next-button.next::after {
height: 1.14em;
top: 1.19em;
right: 0.51em;
box-shadow: 0 1px 1px rgba(5, 33, 30, 0.4);
box-shadow: 0 1px 1px rgb(5 33 30 / 40%);
}

button.flickity-button.flickity-prev-next-button.next::before {
Expand All @@ -25,7 +25,7 @@ button.flickity-button.flickity-prev-next-button.next::before {
height: 1em;
top: 0.6em;
right: 0.54em;
box-shadow: 0 1px 1px rgba(5, 33, 30, 0.4);
box-shadow: 0 1px 1px rgb(5 33 30 / 40%);
}

button.flickity-button.flickity-prev-next-button.previous::after {
Expand All @@ -34,7 +34,7 @@ button.flickity-button.flickity-prev-next-button.previous::after {
height: 1.14em;
top: 1.19em;
left: 0.51em;
box-shadow: 0 1px 1px rgba(5, 33, 30, 0.4);
box-shadow: 0 1px 1px rgb(5 33 30 / 40%);
}

button.flickity-button.flickity-prev-next-button.previous::before {
Expand All @@ -43,7 +43,7 @@ button.flickity-button.flickity-prev-next-button.previous::before {
height: 1em;
top: 0.6em;
left: 0.54em;
box-shadow: 0 1px 1px rgba(5, 33, 30, 0.4);
box-shadow: 0 1px 1px rgb(5 33 30 / 40%);
}

.flickity-enabled:focus .flickity-viewport {
Expand Down
6 changes: 3 additions & 3 deletions resources/scss/components/_formy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@apply border-gray-400 border-solid border block w-full p-2 text-base m-0 mb-4 font-normal h-10 rounded-none;

box-sizing: border-box;
box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
box-shadow: inset 0 1px 2px rgb(10 10 10 / 10%);
transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
appearance: none;
}
Expand Down Expand Up @@ -129,8 +129,8 @@
@apply float-none inline ml-2;
}

div.checkbox input[type=checkbox],
div.radio input[type=radio] {
div.checkbox input[type="checkbox"],
div.radio input[type="radio"] {
@apply mb-0;
}

Expand Down
2 changes: 1 addition & 1 deletion resources/scss/components/_full-width-styleguide-hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.button {
@apply xl:py-4;

@media only screen and (max-width: 576px) {
@media only screen and (width <= 576px) {
@apply bg-green text-white hover:bg-green-700 focus:bg-green-700;
}
}
Expand Down
4 changes: 1 addition & 3 deletions resources/scss/components/_global.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Restricts the embedded font from combining two characters like "fi"
html {
font-feature-settings: "liga" 0;
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

body {
Expand Down Expand Up @@ -45,8 +45,6 @@ hr {
figure {
@apply mt-2 mb-4 mx-auto;

// Overriding display: inline-block; from CKEditor
// so that the caption wraps appropriately
display: table !important;
padding: 0 !important;
clear: both;
Expand Down
8 changes: 4 additions & 4 deletions resources/scss/components/_menu-main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@apply text-black block p-2 px-3;
}

// Indent each level
/* Indent each level */
li > ul > li a {
@apply pl-8;
}
Expand All @@ -30,19 +30,19 @@
@apply bg-gray-200;
}

// Bottom borders on child <li>
/* Bottom borders on child <li> */
> li {
@screen mt {
@apply border-b border-solid border-gray-200;
}
}

// Selected State
/* Selected State */
.selected {
@apply font-bold;
}

// Don't cascade the selected state to child lists of the item
/* Don't cascade the selected state to child lists of the item */
.selected ul {
@apply font-normal;
}
Expand Down
12 changes: 6 additions & 6 deletions resources/scss/components/_policy-numbering.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
left: 0;
}

@media only screen and (max-width: 576px) {
@media only screen and (width <= 576px) {
padding-left: 2rem;
}
}
Expand All @@ -42,7 +42,7 @@
margin-bottom: 1rem;
font-size: 0.9rem;

@media only screen and (max-width: 576px) {
@media only screen and (width <= 576px) {
padding-left: 2rem;
}
}
Expand All @@ -57,7 +57,7 @@
counter-reset: section;
margin-left: 1rem;

@media only screen and (max-width: 576px) {
@media only screen and (width <= 576px) {
margin-left: -0.5rem;
}

Expand All @@ -68,7 +68,7 @@
font-size: 0.9rem;
list-style-type: lower-alpha;

@media only screen and (max-width: 576px) {
@media only screen and (width <= 576px) {
padding-left: 0.5rem;
}
}
Expand All @@ -79,7 +79,7 @@
}

ul li ul {
@media only screen and (max-width: 576px) {
@media only screen and (width <= 576px) {
margin-left: 0.5rem;
}

Expand All @@ -90,7 +90,7 @@
font-size: 0.9rem;
list-style-type: lower-roman;

@media only screen and (max-width: 576px) {
@media only screen and (width <= 576px) {
padding-left: 0.5rem;
}
}
Expand Down
2 changes: 1 addition & 1 deletion resources/scss/site-specific/_theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// The site-theme class encompasses the content-area component.

.site-theme {
//h1, h2 { @extend .divider-gold; @apply text-green; }
/* h1, h2 { @extend .divider-gold; @apply text-green; } */
}

0 comments on commit 88e6b54

Please sign in to comment.