Skip to content

Commit

Permalink
wip theme style
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Nov 4, 2023
1 parent 84ac783 commit 32a2979
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/styles/components/_accessibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
&:focus {
background-color: var(--wp--preset--color--secondary);
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(var(--wp--preset--color--black--decimal), 0.5);
box-shadow: 0 0 2px 2px var(--wp--preset--color--black);
clip: auto !important;
clip-path: none;
color: var(--wp--preset--color--white);
color: var(--wp--preset--color--background);
font-weight: bolder;
height: auto;
display: block;
Expand Down
1 change: 0 additions & 1 deletion src/styles/components/_blocks.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/* Blocks styles */
.wp-site-blocks {}

4 changes: 3 additions & 1 deletion src/styles/components/_footer.scss
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
footer.wp-block-template-part {}
footer.wp-block-template-part {
margin-top: auto;
}
9 changes: 2 additions & 7 deletions src/styles/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ header.wp-block-template-part {

&.is-style-fixed {
position: fixed;
width: 100%;
transition: 350ms background-color, 175ms 1050ms color;

> div {
transition: 0.7s background-color;
Expand All @@ -32,13 +34,6 @@ header.wp-block-template-part {
}
}


@media #{$mq__responsive_breakpoint} {
height: var(--header--branding--height);
transform: inherit !important;
padding: 0;
}

// if there isn't a featured image compensate void space under the menu
@media all and (min-width: 699px) {

Expand Down
15 changes: 3 additions & 12 deletions src/styles/components/_hero.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/**
* The style for the text filled with a gradient (used in the hero section / patterns)
*/
.is-style-gradient {
background: -webkit-linear-gradient(45deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.modulr-hero {
position: relative;
.hero-title {
Expand All @@ -23,13 +14,13 @@
translate: -50% -50%;
}
&:before {
left: -100vw;
left: -90vw;
background: linear-gradient(80deg,var(--wp--preset--color--primary) 0%,var(--wp--preset--color--primary-light) 100%);
mask-image: radial-gradient(rgba(0,0,0,.4),transparent 60%);
mask-image: radial-gradient(rgba(0,0,0,.45),transparent 60%);
}
&:after {
left: 100vw;
background: linear-gradient(240deg,var(--wp--preset--color--secondary) 0%,var(--wp--preset--color--secondary-light) 100%);
mask-image: radial-gradient(rgba(0,0,0,.3),transparent 65%);
mask-image: radial-gradient(rgba(0,0,0,.33),transparent 65%);
}
}
1 change: 0 additions & 1 deletion src/styles/pages/_author.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// todo: styling this
.article-author {}

0 comments on commit 32a2979

Please sign in to comment.