1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-03 01:27:32 -05:00
notes/_sass/base.scss

109 lines
1.4 KiB
SCSS
Raw Normal View History

2017-03-24 09:47:37 -04:00
//
// Base element style overrides
//
2018-11-15 16:17:29 -05:00
// stylelint-disable selector-no-type, selector-max-type
2017-03-09 13:16:08 -05:00
* {
box-sizing: border-box;
}
2018-11-18 11:07:45 -05:00
::selection {
color: $white;
background: $link-color;
}
2017-03-09 13:16:08 -05:00
html {
2017-03-24 09:47:37 -04:00
@include fs-4;
2020-05-01 17:31:44 -04:00
scroll-behavior: smooth;
2017-03-09 13:16:08 -05:00
}
body {
font-family: $body-font-family;
font-size: inherit;
2017-03-24 09:47:37 -04:00
line-height: $body-line-height;
2017-03-09 13:16:08 -05:00
color: $body-text-color;
2018-11-15 15:12:12 -05:00
background-color: $body-background-color;
2017-03-09 13:16:08 -05:00
}
ol,
ul,
2020-05-01 17:32:33 -04:00
dl,
2017-03-09 13:16:08 -05:00
pre,
address,
blockquote,
2020-05-01 17:32:33 -04:00
table,
2017-03-09 13:16:08 -05:00
div,
hr,
2020-05-01 17:32:33 -04:00
form,
fieldset,
2020-05-05 12:49:42 -04:00
noscript .table-wrapper {
2017-03-09 13:16:08 -05:00
margin-top: 0;
}
2017-03-24 09:47:37 -04:00
h1,
h2,
h3,
h4,
h5,
h6 {
2020-05-05 12:48:45 -04:00
margin-top: 0;
margin-bottom: 1em;
2017-03-24 09:47:37 -04:00
font-weight: 500;
line-height: $body-heading-line-height;
2017-03-26 21:09:19 -04:00
color: $body-heading-color;
2017-03-24 09:47:37 -04:00
}
p {
2020-05-05 12:48:45 -04:00
margin-top: 1em;
2017-03-24 09:47:37 -04:00
margin-bottom: 1em;
}
2017-03-09 13:16:08 -05:00
a {
color: $link-color;
text-decoration: none;
}
2017-03-24 09:47:37 -04:00
a:not([class]) {
text-decoration: none;
2018-11-15 15:12:12 -05:00
background-image: linear-gradient($border-color 0%, $border-color 100%);
2017-03-24 09:47:37 -04:00
background-repeat: repeat-x;
background-position: 0 100%;
background-size: 1px 1px;
&:hover {
2020-04-24 11:44:37 -04:00
background-image: linear-gradient(
rgba($link-color, 0.45) 0%,
rgba($link-color, 0.45) 100%
);
2017-03-24 09:47:37 -04:00
background-size: 1px 1px;
}
}
2017-03-09 13:16:08 -05:00
code {
font-family: $mono-font-family;
2020-05-01 15:07:27 -04:00
font-size: 0.75em;
2017-03-26 21:09:19 -04:00
line-height: $body-line-height;
2017-03-09 13:16:08 -05:00
}
2019-09-10 12:36:54 -04:00
figure,
pre {
2017-03-24 09:47:37 -04:00
margin: 0;
}
2017-03-09 13:16:08 -05:00
li {
margin: 0.25em 0;
}
img {
max-width: 100%;
height: auto;
}
2017-03-24 09:47:37 -04:00
hr {
height: 1px;
padding: 0;
margin: $sp-6 0;
2018-11-15 15:12:12 -05:00
background-color: $border-color;
2017-03-24 09:47:37 -04:00
border: 0;
}