uechi.io/css/index.scss

145 lines
2.5 KiB
SCSS
Raw Normal View History

2017-10-07 11:43:26 +09:00
---
---
2019-03-14 23:23:12 +09:00
@import url('https://fonts.googleapis.com/css?family=PT+Sans:400,700');
2017-10-07 11:43:26 +09:00
$break-small: 500px;
$break-large: 840px;
2019-03-14 23:23:12 +09:00
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;
2019-03-14 23:23:12 +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;
2017-11-28 12:23:03 +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';
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: 1px solid #d7d7d7;
border-radius: 3px;
background-color: #fff;
2018-07-19 20:53:12 +09:00
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
2017-10-07 11:43:26 +09:00
font-size: 14px;
padding: 12px 16px;
line-height: 1.8em;
}
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;
background: #f6f6f6;
border-radius: 3px;
font-size: 16px;
}
2018-07-19 20:53:12 +09:00
a:hover,
a:active,
a:link,
a:visited {
2017-10-07 11:43:26 +09:00
color: black;
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;
background-color: #dbdbdb;
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;
2019-03-14 23:23:12 +09:00
// justify-content: space-between;
2017-10-07 11:43:26 +09:00
align-items: center;
2019-03-14 23:23:12 +09:00
margin-top: 50px;
padding: 15px 0;
2018-12-28 21:44:59 +09:00
// border-bottom: 1px solid #efefef;
2019-03-14 23:23:12 +09:00
2017-10-07 11:43:26 +09:00
@media screen and (max-width: $break-small) {
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;
}
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
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
@import './post';