Files
hexo-theme-shoka/source/css/_common/scaffolding/base.styl
amehime e93b001e07 update
2020-09-14 00:12:50 +08:00

144 lines
2.5 KiB
Stylus

::selection {
background: var(--color-orange);
color: var(--grey-2);
}
*, *:before, *:after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
body {
background: linear-gradient(to top, var(--body-bg-shadow) 0, var(--grey-1) 20%) no-repeat bottom;
color: var(--text-color);
font-family: $font-family-base;
font-size: $font-size-base;
line-height: $line-height-base;
-webkit-font-smoothing: antialiased;
overflow: hidden;
&.loaded {
overflow: auto;
@extend $big-scrollbar;
#content .wrap {
@extend .slide-up-big-in;
}
#sidebar .panel.active {
@extend .slide-up-big-in;
display: block;
}
#brand .pjax {
@extend .slide-down-in;
}
}
+tablet-mobile() {
// Remove the padding of body when the sidebar is open.
padding-left: 0 !important;
padding-right: 0 !important;
}
&.fullscreen {
overflow: hidden;
#tool, #sidebar>.inner {
z-index: 0;
}
}
}
h1, h2, h3, h4, h5, h6 {
font-family: $font-family-headings;
font-weight: bold;
line-height: 1.5;
margin: 1.25rem 0 .9375rem;
&.title {
font-family: $font-family-title;
}
}
a {
border: none;
color: currentColor;
outline: 0;
text-decoration: none;
word-wrap();
the-transition();
&:hover {
border-bottom-color: var(--color-blue);
color: var(--color-blue);
}
&::before, &::after {
the-transition(.4s);
}
cursor: pointer;
}
a, li, div {
-webkit-tap-highlight-color: transparent;
}
li {
list-style: none;
}
iframe, img, video {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 100%;
}
hr {
background-image: repeating-linear-gradient(-45deg, var(--grey-3), var(--grey-4) .25rem, transparent .25rem, transparent .5rem);
border: none;
height: .125rem;
margin: 1.5rem 0;
}
blockquote {
border-left: .25rem solid var(--grey-4);
color: var(--grey-6);
margin: 1.25rem 0;
padding: .625rem 1.25rem;
cite::before {
content: '-';
padding: 0 .3125rem;
}
}
dt {
font-weight: bold;
}
dd {
margin: 0;
padding: 0;
}
kbd {
background-color: var(--grey-1);
background-image: linear-gradient(var(--grey-2), var(--grey-0), var(--grey-2));
border: .0625rem solid var(--grey-4);
border-radius: .2rem;
box-shadow: .1rem .1rem .2rem var(--grey-9-a1);
color: var(--primary-color);
font-family: inherit;
padding: .1rem .3rem;
white-space: nowrap;
}
input, textarea {
color: var(--text-color);
}