mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-13 00:25:28 -04:00
a bit more SCSS cleanup
This commit is contained in:
@@ -29,7 +29,7 @@ footer {
|
||||
padding-bottom: 2px;
|
||||
border-bottom: 1px solid;
|
||||
|
||||
@include themes.themed($border-color: "light");
|
||||
@include themes.themed($color: "medium-dark", $border-color: "light");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@use "../abstracts/settings";
|
||||
@use "../abstracts/themes";
|
||||
@use "../abstracts/functions" as *;
|
||||
@use "../abstracts/functions";
|
||||
|
||||
// Global Styles
|
||||
body {
|
||||
@@ -77,18 +77,18 @@ main {
|
||||
background-size: 0% settings.$link-underline-size;
|
||||
padding-bottom: settings.$link-underline-size;
|
||||
|
||||
@include themes.themed($color: "links");
|
||||
|
||||
// TODO: overriding transition-property from themed() -- very hacky
|
||||
transition-property: color, background-size;
|
||||
transition-duration: #{settings.$theme-transition-duration}, 0.25s;
|
||||
transition-timing-function: linear, ease-in-out;
|
||||
@include themes.themed($color: "links") {
|
||||
// TODO: overriding transition-property from themed() -- very hacky
|
||||
transition-property: color, background-size;
|
||||
transition-duration: #{settings.$theme-transition-duration}, 0.25s;
|
||||
transition-timing-function: #{settings.$theme-transition-function}, ease-in-out;
|
||||
}
|
||||
|
||||
// cool link underlines (via messy SCSS hacking):
|
||||
// https://www.dannyguo.com/blog/animated-multiline-link-underlines-with-css/
|
||||
@each $theme, $map in themes.$themes {
|
||||
@at-root body.#{$theme} #{&} {
|
||||
background-image: underline-hack(map.get($map, "links"));
|
||||
background-image: functions.underline-hack(map.get($map, "links"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,22 +62,26 @@ header {
|
||||
|
||||
a {
|
||||
display: inline-flex;
|
||||
|
||||
// hovers are super choppy without this in some browsers
|
||||
will-change: transform;
|
||||
|
||||
@include themes.themed($color: "medium-dark");
|
||||
|
||||
// TODO: overriding transition-property from themed() -- very hacky
|
||||
transition-property: color, transform;
|
||||
transition-timing-function: linear, ease-in-out;
|
||||
@include themes.themed($color: "medium-dark") {
|
||||
// TODO: overriding transition-property from themed() -- very hacky
|
||||
transition-property: color, transform;
|
||||
transition-duration: #{settings.$theme-transition-duration};
|
||||
transition-timing-function: #{settings.$theme-transition-function}, ease-in-out;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.1);
|
||||
|
||||
@include themes.themed($color: "links");
|
||||
|
||||
// TODO: overriding transition-property from themed() -- very hacky
|
||||
transition-property: color, transform;
|
||||
transition-timing-function: linear, ease-in-out;
|
||||
@include themes.themed($color: "links") {
|
||||
// TODO: overriding transition-property from themed() -- very hacky
|
||||
transition-property: color, transform;
|
||||
transition-duration: #{settings.$theme-transition-duration};
|
||||
transition-timing-function: #{settings.$theme-transition-function}, ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
|
||||
Reference in New Issue
Block a user