blog/src/css/main.scss

261 lines
3.4 KiB
SCSS
Raw Normal View History

2016-05-21 09:42:57 +00:00
$link-color: #AD4E4E;
$selectionColor: #D2D2D2;
2017-06-03 10:55:30 +00:00
$background-color: #FFF;
2016-05-21 09:42:57 +00:00
@import "_underlines.scss";
2017-06-03 10:55:30 +00:00
2016-05-21 09:42:57 +00:00
body {
2017-06-03 10:55:30 +00:00
margin: 0;
padding: 0;
overflow: none;
2016-05-21 09:42:57 +00:00
}
* {
&::selection {
background-color: $selectionColor;
}
&::-moz-selection {
background-color: $selectionColor;
}
}
a {
2017-06-03 10:55:30 +00:00
color: $link-color;
2016-05-21 09:42:57 +00:00
transition: color ease .3s;
&:hover {
color: $link-color;
text-decoration: none;
}
&+img {
border-bottom: none;
}
}
2017-06-03 11:06:31 +00:00
.center {
text-align: center;
}
2018-02-10 18:13:49 +00:00
header {
font-family: 'Lucida Grande', Arial, sans-serif;
font-size: .8em;
h1 {
font-weight: normal;
margin: .8em 0 .2em 8px;
2018-02-10 18:13:49 +00:00
img {
height: 2em;
border-radius: 8px;
2018-02-10 18:13:49 +00:00
}
a {
color: #000 !important;
text-decoration: none;
margin: 0;
}
.social {
text-decoration: none;
svg {
height: 20px;
}
&:hover svg path,
&:hover svg rect {
fill: $link-color !important;
}
}
}
hr {
margin: 0 auto;
width: 95%;
height: 1px;
background-color: rgba(0, 0, 0, .2);
}
}
2016-05-21 09:42:57 +00:00
pre code {
overflow-x: auto;
overflow-y: auto;
2016-07-26 09:08:49 +00:00
padding-bottom: 15px;
font-size: 0.85em;
}
p > code {
background-color: #3f3f3f;
color: #dcdcdc;
font-size: 0.9em;
2018-02-04 13:16:07 +00:00
padding: 2px 5px;
}
blockquote {
border-left: 8px solid rgba(121, 130, 139, 0.52);
margin-left: 0;
padding-left: 1em;
color: #79828B;
2016-05-21 09:42:57 +00:00
}
2017-06-03 10:55:30 +00:00
figure {
max-width: 100%;
margin: 0 auto;
img {
max-width: 100%;
2021-08-31 18:11:24 +00:00
border: 1px solid rgba(100,100,100,.2);
2017-06-03 10:55:30 +00:00
}
p {
margin: 0;
}
2016-05-21 09:42:57 +00:00
}
iframe {
max-width: 100%;
border: 0;
overflow: scroll;
}
2018-01-01 09:50:30 +00:00
hr {
border: 0;
height: 2px;
background: rgba(121, 130, 139, 0.52);
width: 80%;
}
2021-08-08 18:46:12 +00:00
details {
font-size: 0.8em;
border: 1px dashed #79828B;
padding: 2px 8px;
summary {
cursor: pointer;
}
p {
margin: 0;
}
}
2016-05-21 09:42:57 +00:00
.emoji {
display: inline !important;
margin: 0 !important;
}
2017-06-03 10:55:30 +00:00
.container {
max-width: 1020px;
2017-06-03 10:55:30 +00:00
margin: 0 auto;
2016-05-21 09:42:57 +00:00
}
2017-06-03 10:55:30 +00:00
.post-list {
list-style: none;
padding: 0;
2016-05-21 09:42:57 +00:00
}
2017-06-03 10:55:30 +00:00
.post-preview {
opacity: 0.6;
2016-05-21 09:42:57 +00:00
}
2017-06-03 10:55:30 +00:00
.pagination {
2016-05-21 09:42:57 +00:00
text-align: center;
}
2017-06-03 10:55:30 +00:00
.pagination a {
font-size: 1.4mem;
color: #000;
}
2016-05-21 09:42:57 +00:00
2017-06-03 10:55:30 +00:00
.post {
font-family: 'Lucida Grande', Arial, sans-serif;
font-size: 18px;
line-height: 28px;
padding: 2px 8px;
2016-05-21 09:42:57 +00:00
a {
@include linkUnderlines($background-color, #4a4a4a, $link-color);
}
2017-06-03 10:55:30 +00:00
.post-title {
color: #000;
font-size: 32px;
line-height: 34px;
margin: 21px 0 0;
font-weight: 700;
2016-05-21 09:42:57 +00:00
a {
2017-06-03 10:55:30 +00:00
color: #000;
text-decoration: none;
margin: 0;
2016-05-21 09:42:57 +00:00
}
}
2016-07-26 09:08:49 +00:00
2020-11-10 18:32:40 +00:00
.full-post-link {
font-style: italic;
font-size: 0.9em;
}
2017-06-03 10:55:30 +00:00
.post-meta {
2018-01-01 09:50:30 +00:00
color: #3d4145;
2017-06-03 10:55:30 +00:00
font-size: 15px;
line-height: 17px;
margin: 0 0 12px 0;
2016-07-26 09:08:49 +00:00
}
2016-05-21 09:42:57 +00:00
}
2017-06-03 10:55:30 +00:00
footer {
margin: 20px 0 10px;
color: #79828B;
2016-05-21 09:42:57 +00:00
text-align: center;
}
2018-02-10 18:13:49 +00:00
2017-06-03 10:55:30 +00:00
.social-icons {
a {
text-decoration: none !important;
background: none !important;
text-shadow: none !important;
2016-05-21 09:42:57 +00:00
}
2017-06-03 10:55:30 +00:00
a svg {
height: 40px;
2016-05-21 09:42:57 +00:00
}
}
2017-10-15 16:31:16 +00:00
.share {
background: transparent;
border: none;
display: none;
cursor: pointer;
&.show {
display: initial;
}
&:hover, &:active {
fill: $link-color;
color: $link-color;
}
svg {
height: 20px;
vertical-align: bottom;
}
}
2018-08-30 19:20:50 +00:00
table {
width: 100%;
border-spacing: 0;
border-collapse: collapse;
&, tr, td, th, tbody, thead {
margin: 0;
padding: 0;
}
th, td {
padding: 5px;
border: 1px solid #3d4145;
}
}