uechi.io/css/index.scss

172 lines
3.0 KiB
SCSS
Raw Normal View History

2017-10-07 11:43:26 +09:00
---
---
2020-02-07 12:37:31 +09:00
@import url("https://fonts.googleapis.com/css?family=PT+Sans:400,700");
2019-03-14 23:23:12 +09:00
2017-10-07 11:43:26 +09:00
$break-small: 500px;
$break-large: 840px;
2019-03-14 23:23:12 +09:00
2020-02-07 12:57:54 +09:00
:root {
--background: #fff;
--text: #000;
--accent: #4f33e8;
--highlight: #f6f6f6;
--tone: #989898;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #261e3a;
--text: #e2dfea;
--accent: #7033e8;
--highlight: #140d25;
--tone: #989898;
}
}
2017-10-07 11:43:26 +09:00
body {
2018-12-28 21:44:59 +09:00
width: 900px;
2017-10-07 11:43:26 +09:00
margin: 0 auto;
padding: 0 20px;
2020-02-07 12:37:31 +09:00
font-family: "PT Sans", "Hiragino Sans", "Hiragino Mincho ProN", serif;
2017-11-28 12:20:00 +09:00
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
2020-02-07 12:37:31 +09:00
font-feature-settings: "kern", "palt", "pwid";
-webkit-font-feature-settings: "kern", "palt", "pwid";
-moz-font-feature-settings: "kern", "palt", "pwid";
-moz-font-feature-settings: "kern=1", "palt", "pwid";
2020-02-07 12:57:54 +09:00
background: var(--background);
color: var(--text);
2019-03-14 23:23:12 +09:00
2017-10-07 11:43:26 +09:00
@media screen and (max-width: $break-large) {
width: auto;
margin: 0;
}
2018-12-28 21:44:59 +09:00
}
// MathJax
2017-10-07 11:43:26 +09:00
#MathJax_Message {
display: none;
2018-12-28 21:44:59 +09:00
}
// Highlight.js
2017-10-07 11:43:26 +09:00
.hljs {
border-radius: 3px;
2020-02-07 12:37:31 +09:00
// font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
// font-size: 14px;
2020-02-07 12:57:54 +09:00
background: #0e0127 !important;
2020-02-07 12:37:31 +09:00
padding: 12px 18px !important;
line-height: 1.6em !important;
2017-10-07 11:43:26 +09:00
}
code {
2018-05-24 23:18:31 +09:00
padding: 0 12px;
2017-10-07 11:43:26 +09:00
}
p code {
padding: 3px 10px;
2020-02-07 12:57:54 +09:00
background: var(--highlight);
2017-10-07 11:43:26 +09:00
border-radius: 3px;
font-size: 16px;
}
2018-07-19 20:53:12 +09:00
a:hover,
a:active,
a:link,
a:visited {
2020-02-07 12:57:54 +09:00
color: var(--text);
2017-10-07 11:43:26 +09:00
text-decoration: none;
}
2018-07-19 20:53:12 +09:00
h1,
h2,
h3,
h4,
p {
2017-10-07 11:43:26 +09:00
margin: 0;
padding: 0;
line-height: 1.333em;
}
hr {
display: block;
width: 100%;
height: 1px;
2020-02-07 12:57:54 +09:00
background-color: var(--highlight);
2017-10-07 11:43:26 +09:00
border: 0;
margin: 40px 0;
}
2019-03-14 23:23:12 +09:00
2017-10-07 11:43:26 +09:00
.header {
display: flex;
flex-wrap: wrap;
align-items: center;
2019-03-14 23:23:12 +09:00
margin-top: 50px;
padding: 15px 0;
2017-10-07 11:43:26 +09:00
@media screen and (max-width: $break-small) {
2020-02-07 12:37:31 +09:00
margin-top: 0px;
2017-10-07 11:43:26 +09:00
justify-content: center;
2019-03-14 23:23:12 +09:00
flex-direction: column;
2017-10-07 11:43:26 +09:00
}
2019-03-14 23:23:12 +09:00
2017-10-07 11:43:26 +09:00
.logo {
margin: 10px 0 10px;
2020-02-07 12:57:54 +09:00
@media (prefers-color-scheme: dark) {
filter: invert(1);
}
2017-10-07 11:43:26 +09:00
}
2019-03-14 23:23:12 +09:00
2017-10-07 11:43:26 +09:00
.menu {
list-style: none;
2019-03-14 23:23:12 +09:00
margin-left: 40px;
2017-10-07 11:43:26 +09:00
padding: 8px 0;
display: flex;
flex-flow: row wrap;
2019-03-14 23:23:12 +09:00
text-transform: uppercase;
font-weight: bold;
2017-10-07 11:43:26 +09:00
.menu__item:not(:last-child) {
2019-03-14 23:23:12 +09:00
margin-right: 30px;
@media screen and (max-width: $break-small) {
margin-right: 20px;
}
2017-10-07 11:43:26 +09:00
}
2019-03-14 23:23:12 +09:00
2017-10-07 11:43:26 +09:00
@media screen and (max-width: $break-small) {
padding: 0;
2018-12-28 21:44:59 +09:00
margin: 5px 0;
2017-10-07 11:43:26 +09:00
}
}
}
2019-03-14 23:23:12 +09:00
2017-10-07 11:43:26 +09:00
.metro {
2019-03-14 23:23:12 +09:00
// text-align: center;
display: flex;
flex-direction: column;
margin: 75px 0 100px;
2017-10-07 11:43:26 +09:00
.menu {
2019-03-14 23:23:12 +09:00
margin: 15px 0 0 0;
padding: 0;
text-transform: uppercase;
font-size: 16px;
font-weight: bold;
2017-10-07 11:43:26 +09:00
list-style: none;
.menu__item:not(:last-child) {
2019-03-14 23:23:12 +09:00
margin-bottom: 12px;
2017-10-07 11:43:26 +09:00
}
}
2019-03-14 23:23:12 +09:00
2020-02-07 13:02:54 +09:00
@media (prefers-color-scheme: dark) {
img {
2020-02-07 13:00:11 +09:00
filter: invert(1);
}
}
2017-10-07 11:43:26 +09:00
@media screen and (max-width: $break-small) {
2019-03-14 23:23:12 +09:00
margin: 40px 0 40px;
2017-10-07 11:43:26 +09:00
.menu {
font-size: 15px;
}
}
}
2019-03-14 22:32:24 +09:00
2020-02-07 12:37:31 +09:00
@import "./post";