Files

222 lines
3.6 KiB
SCSS

$width: 700px;
html, body {
width: 100%;
line-height: 1.6;
margin: 0;
}
* {
box-sizing: border-box;
//margin: 0;
//padding: 0;
}
body {
display: flex;
flex-direction: column;
align-items: center;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
//background-color: #a9e7da;
}
header {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
h1 {
margin: 20px 0 5px 10px;
line-height: 1;
a {
color: #000;
}
}
p {
margin: 0 0 0 10px;
color: #666;
}
a {
text-decoration: none;
}
& > div {
display: flex;
margin-top: 5px;
}
}
nav {
position: sticky;
z-index: 1000000;
top: 0;
width: 100%;
//max-width: $width;
//background-color: rgba(255, 255, 255, 1);
//background-color: #dff8ff;
background-color: #f1f7ff;
display: flex;
align-items: center;
flex-direction: column;
//background-color: rgba(255, 255, 255, 0.9);
//backdrop-filter: blur(10px);
ul {
list-style: none;
margin: 0;
padding: 10px;
display: flex;
flex-wrap: wrap;
a {
display: block;
text-decoration: none;
padding: 5px 10px;
border-radius: 15px;
color: #468ed8;
span {
padding-bottom: 1px;
border-bottom: #468ed8 solid 1px;
}
&:hover, &.active {
text-decoration: none;
background-color: #d5e6ff;
//color: #222;
//box-shadow: #222 0px 1px;
span {
border-bottom: none;
}
}
}
a.rainbow {
background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
animation: animatedgradient 5s linear alternate infinite;
background-size: 300% 300%;
text-decoration: none;
margin-right: 10px;
color: #fff;
//box-shadow: #222 0px 1px;
&:hover {
//color: #000;
animation-play-state: paused;
}
}
}
@keyframes animatedgradient {
0% {
background-position: 0% 0%;
}
25% {
background-position: 50% 50%;
}
50% {
background-position: 100% 10%;
}
75% {
background-position: 50% 50%;
}
100% {
background-position: 0% 0%;
}
}
}
.page {
width: 100%;
max-width: $width;
padding-left: 10px;
padding-right: 10px;
word-break: break-word;
img {
width: 100%;
height: auto;
}
code, pre, tt {
padding: .2em .4em;
margin: 0;
font-size: 85%;
background-color: rgba(27, 31, 35, .05);
border-radius: 3px;
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
white-space: normal;
}
h2 {
font-size: 1.3em;
}
h3 {
font-size: 1.1em;
font-weight: 500;
}
table {
border-collapse: collapse;
thead {
text-align: left;
background-color: #eee;
}
thead {
border-bottom: 7px solid #fff;
}
tr {
border-bottom: 7px solid #fff;
border-top: 7px solid #fff;
vertical-align: baseline;
}
tr:first-child {
border-bottom: none;
}
tr:last-child {
border-top: none;
}
td {
padding: 0;
}
td, th {
border-left: 5px solid #fff;
border-right: 5px solid #fff;
}
td:first-child, th:first-child {
border-left: none;
}
td:last-child, th:last-child {
border-right: none;
}
}
li + li {
margin-top: .25em;
}
a {
color: #0366d6;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}