mirror of
https://github.com/ekmas/cs16.css
synced 2026-04-10 21:53:24 +00:00
added styling for docs page
This commit is contained in:
parent
2a25c76110
commit
b3fcced804
1 changed files with 107 additions and 0 deletions
107
src/index.css
Normal file
107
src/index.css
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
body {
|
||||||
|
padding: 40px;
|
||||||
|
max-width: 800px;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background-color: #958831;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
|
||||||
|
.top {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.links {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
a {
|
||||||
|
display: inline-block;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
background-size: 25px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh {
|
||||||
|
background-image: url(/svg/github.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.x {
|
||||||
|
background-image: url(/svg/x.svg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 22px;
|
||||||
|
line-height: 25px;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
& > div {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
h2 {
|
||||||
|
user-select: none;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.code-block {
|
||||||
|
margin-top: 15px;
|
||||||
|
overflow-x: hidden;
|
||||||
|
|
||||||
|
.inner {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.cs-btn {
|
||||||
|
position: absolute;
|
||||||
|
right: 1px;
|
||||||
|
top: 1px;
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background-color: #3e4637;
|
||||||
|
border: 1px solid;
|
||||||
|
border-color: #292c21 #8c9284 #8c9284 #292c21;
|
||||||
|
margin-top: 5px;
|
||||||
|
position: relative;
|
||||||
|
font-family: "Courier New", Courier, monospace;
|
||||||
|
padding: 5px;
|
||||||
|
|
||||||
|
code {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
|
||||||
|
&::selection {
|
||||||
|
background-color: #958831;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 400px) {
|
||||||
|
body {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue