1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-14 12:36:03 -05:00
notes/_sass/base.scss

105 lines
1.3 KiB
SCSS
Raw Normal View History

2017-03-24 09:47:37 -04:00
//
// Base element style overrides
//
2017-03-09 13:16:08 -05:00
// stylelint-disable selector-no-type
* {
box-sizing: border-box;
}
html {
2017-03-24 09:47:37 -04:00
@include fs-4;
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;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
ul,
pre,
address,
blockquote,
dl,
div,
fieldset,
form,
hr,
noscript,
table {
margin-top: 0;
}
2017-03-24 09:47:37 -04:00
h1,
h2,
h3,
h4,
h5,
h6 {
2017-03-26 21:09:19 -04:00
margin-top: 1.2em;
margin-bottom: 0.8em;
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 {
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;
background-image: linear-gradient($grey-lt-100 0%, $grey-lt-100 100%);
background-repeat: repeat-x;
background-position: 0 100%;
background-size: 1px 1px;
&:hover {
background-image: linear-gradient(rgba($link-color, 0.45) 0%, rgba($link-color, 0.45) 100%);
background-size: 1px 1px;
}
}
2017-03-09 13:16:08 -05:00
code {
font-family: $mono-font-family;
2017-03-26 21:09:19 -04:00
font-size: 12px;
line-height: $body-line-height;
2017-03-09 13:16:08 -05:00
}
2017-03-24 09:47:37 -04:00
figure {
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;
background-color: $grey-lt-100;
border: 0;
}