hugo-theme-hyde-hyde/static-src/scss/hyde-hyde/_base.scss

137 lines
2 KiB
SCSS
Raw Normal View History

2018-08-13 02:57:23 +00:00
* {
box-sizing: border-box;
}
html {
2018-07-27 23:06:50 +00:00
-webkit-text-size-adjust: 100%; // for iOS
box-direction: normal;
2018-08-13 02:57:23 +00:00
font-weight: $root-font-weight;
font-family: $root-font-family;
font-size: $root-font-size;
line-height: $root-line-height;
}
html, body {
margin: 0;
padding: 0;
2018-07-27 23:06:50 +00:00
}
h1,
h2,
h3,
h4 {
font-weight: $heading-font-weight;
}
h1 {
font-size: $h1-font-size;
line-height: $h1-line-height;
margin-bottom: 1rem;
}
h2 {
font-size: $h2-font-size;
margin-bottom: .5rem;
}
h3 {
font-size: $h3-font-size;
}
h4 {
font-size: $h4-font-size;
}
2018-07-25 02:21:03 +00:00
h5 {
font-size: $h5-font-size;
}
2018-07-27 00:03:24 +00:00
figure {
width: 100%;
margin: 0;
padding: 0;
}
%quotebox {
padding: .8889rem;
margin-top: 1.4em;
margin-left: 0px;
margin-right: 0px;
border-radius: 6px;
border-left-width: 6px;
border-left-style: solid;
border-right: 6px solid transparent;
border-right-width: 6px;
border-right-style: solid;
border-right-color: rgba(0, 0, 0, 0) transparent;
color: #7a7a7a;
}
blockquote {
background-color: #fafafa;
border-left-color: #e6e6e6;
@extend %quotebox;
}
.important {
background-color: #fbf8e8;
border-left-color: #fee450;
@extend %quotebox;
}
.warning {
background-color: #f2dbdc;
border-left-color: #ae272f;
@extend %quotebox;
}
kbd {
2018-07-23 11:23:22 +00:00
font-family: $root-font-family;
2018-07-24 00:08:48 +00:00
padding: 2px 7px;
border: 1px solid $gray-4;
font-size: 0.8em;
line-height: 1.4;
2018-07-24 00:08:48 +00:00
background-color: #f3f3f3;
color: $gray-9;
2018-07-24 00:08:48 +00:00
box-shadow: 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 2px $white inset;
border-radius: 3px;
display: inline-block;
text-shadow: 0 1px 0 $white;
white-space: nowrap;
}
a {
//border-bottom: 1px dotted;
color: $link-color;
text-decoration: none;
word-wrap: break-word;
&.sidebar-nav-item {
&:hover {
@include link-no-decoration();
}
&:focus {
@include link-no-decoration();
}
}
&:focus {
@include link-hover();
&.tag {
@include link-no-decoration();
}
}
&:hover {
@include link-hover();
&.tag {
@include link-no-decoration();
}
}
&.tag {
@include link-no-decoration();
}
}
2018-07-25 02:21:03 +00:00
.content {
padding-bottom: 2rem;
padding-top: 2rem;
}