summaryrefslogtreecommitdiff
path: root/_sass/yat
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-20 15:45:37 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-20 15:45:37 +0800
commit8a4923aea8fb4757b99b945dcfdc6448970bc396 (patch)
tree34da598c36ad4029246b970b744c21d982e03328 /_sass/yat
parentce43bb9a6aab445286afac54e5048b1547efa63d (diff)
update: adjust header and banner
Diffstat (limited to '_sass/yat')
-rw-r--r--_sass/yat/_layout.scss28
1 files changed, 16 insertions, 12 deletions
diff --git a/_sass/yat/_layout.scss b/_sass/yat/_layout.scss
index 571bb4f..e4960f1 100644
--- a/_sass/yat/_layout.scss
+++ b/_sass/yat/_layout.scss
@@ -11,12 +11,10 @@ html {
&[data-scroll-status='top'] {
header.site-header-transparent {
height: 0;
- text-shadow: 0 0 3px #08080880;
- }
- header.site-header .page-link {
- text-shadow: 0 0 2px #080808d0;
- filter: drop-shadow(0 0 2px #08080880);
+ &.site-header {
+ text-shadow: 0 0 2px #505050a0;
+ }
}
footer.site-footer {
@@ -56,6 +54,10 @@ html {
a {
text-decoration: none;
}
+
+ .site-header-inner {
+ position: relative;
+ }
}
.site-brand {
@@ -65,17 +67,15 @@ html {
.site-brand-inner {
@include relative-font-size(1.125);
font-weight: $base-font-weight;
- filter: drop-shadow(0 0 2px #08080880);
- text-shadow: 0 0 2px #080808d0;
letter-spacing: -1px;
- transition: drop-shadow 0.2s;
+ transition: filter 0.2s;
&, &:visited {
color: $header-text-color;
}
&:hover {
- filter: drop-shadow(0 0 3px #080808a0);
+ filter: drop-shadow(0 0 2px #08080880);
}
.site-favicon {
@@ -88,8 +88,10 @@ html {
.site-nav {
@include relative-font-size(1.025);
- float: right;
line-height: $header-height;
+ position: absolute;
+ right: 0;
+ top: 0;
.nav-trigger {
display: none;
@@ -112,12 +114,10 @@ html {
@include media-query($on-palm) {
position: absolute;
top: 0;
- right: $spacing-unit / 2;
text-align: left;
label[for="nav-trigger"] {
display: block;
- float: right;
z-index: 2;
cursor: pointer;
}
@@ -361,6 +361,10 @@ html {
> :nth-child(2) {
font-weight: $base-font-weight * 1.5;
}
+
+ > :last-child {
+ margin-bottom: 0;
+ }
}
}