Skip to content

Commit

Permalink
Update theme styles: ul-special styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ivallogenes committed Aug 16, 2024
1 parent 77acd5a commit 8ead2df
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 114 deletions.
57 changes: 57 additions & 0 deletions styles/sass/_list-styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
.ul-special {
display: flex;
justify-content: center;

ul {
list-style: none;
padding-inline-start: 0;
max-width: 800px;

li {
font-family: 'poppins';
font-weight: 500;
font-size: 16px;
padding-left: 30px;
margin-bottom: 14px;
position: relative;
display: flex;
align-items: center;
line-height: 1.8;
cursor: pointer;

&::before {
display: inline-block;
content: '';
width: 19px;
height: 19px;
background: url('../../icons/chevron-right.svg') no-repeat center/contain;
position: absolute;
left: 0;
transform: translateX(-5px);
transition: all 250ms cubic-bezier(.25,.8,.25,1);
}
&:hover {
&::before {
transform: translateX(0);
}
}
&::selection {
background: $color-olive-green;
}
}
}
}

@media (min-width: 1024px) {
.ul-special {
ul {
li {
font-size: 17px;

&::before {
transform: translateX(-10px);
}
}
}
}
}
7 changes: 4 additions & 3 deletions styles/sass/styles-custom.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import './_variables.scss';
@import './_searchbar.scss';
@import './_cms-pages.scss';
@import './_variables';
@import './_searchbar';
@import './_cms-pages';
@import './_list-styles';

/* check package.json for the sass commands;
this file gets overriten though by the css files in the `blocks` components,
Expand Down
112 changes: 1 addition & 111 deletions styles/styles-custom.css

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

0 comments on commit 8ead2df

Please sign in to comment.