mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-11 22:19:51 +08:00
The documentation is now generated from markdown. Samples are generated from the tutorial pages. Testing is done by a Python script which runs the tests for a large number of compilers. This version is not very developer-friendly - the Python scripts need ways of limiting what compilers they try to run. If you don't have 15 compilers installed, you won't be able to run the tests in this commit. Fix coming soon.
280 lines
4.0 KiB
CSS
280 lines
4.0 KiB
CSS
body {
|
|
margin: 0;
|
|
color: #333;
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
font-size: 18px;
|
|
font-weight: 300;
|
|
}
|
|
|
|
pre, code, samp {
|
|
font-family:
|
|
Consolas, "Liberation Mono", Menlo, "Courier New", Courier, monospace;
|
|
}
|
|
|
|
pre {
|
|
background-color: #477093;
|
|
padding: 1.5em 20px;
|
|
border-radius: 5px;
|
|
overflow: scroll;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-size: 14px;
|
|
}
|
|
|
|
pre em {
|
|
font-style: normal;
|
|
text-shadow: 0 -1px grey;
|
|
color: white;
|
|
}
|
|
|
|
pre.comment {
|
|
background-color: #EEF4F9;
|
|
color: #888;
|
|
border: 1px dashed #477093;
|
|
}
|
|
|
|
pre.comment em {
|
|
color: #333;
|
|
text-shadow: none;
|
|
}
|
|
|
|
code, samp {
|
|
background-color: #EEF4F9;
|
|
padding: 1px 3px;
|
|
border-radius: 3px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
nav > *, header > *, main, footer {
|
|
max-width: 760px;
|
|
padding-left: 230px;
|
|
}
|
|
|
|
@media(max-width: 1240px) {
|
|
nav > *, header > *, main > *, footer {
|
|
padding-left: 150px;
|
|
}
|
|
}
|
|
|
|
@media(max-width: 1060px) {
|
|
nav > *, header > *, main > *, footer {
|
|
padding-left: 100px;
|
|
padding-right: 100px;
|
|
}
|
|
}
|
|
|
|
@media(max-width: 900px) {
|
|
nav > *, header > *, main > *, footer {
|
|
padding-left: 50px;
|
|
padding-right: 50px;
|
|
}
|
|
}
|
|
|
|
@media(max-width: 680px) {
|
|
nav > *, header > *, main > *, footer {
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
}
|
|
|
|
nav {
|
|
position: fixed;
|
|
width: 100%;
|
|
z-index: 1;
|
|
|
|
border-bottom: 1px solid #68a;
|
|
color: white;
|
|
opacity: 0.95;
|
|
}
|
|
|
|
nav, .spacer {
|
|
padding: 0.75em 0;
|
|
font-size: 14px;
|
|
background-color: #222;
|
|
}
|
|
|
|
nav a {
|
|
margin-left: 2em;
|
|
}
|
|
|
|
nav a.first {
|
|
margin-left: 0;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
}
|
|
|
|
header {
|
|
background-color: #4C6F8C;
|
|
background: linear-gradient(#395E7E, #4A79A0);
|
|
color: white;
|
|
padding: 50px 0;
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-size: 60px;
|
|
font-weight: 100;
|
|
}
|
|
|
|
header > h2 {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
font-weight: 100;
|
|
position: relative;
|
|
left: 3px;
|
|
}
|
|
|
|
header > h3 {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
font-weight: 300;
|
|
position: relative;
|
|
left: 4px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
h2 {
|
|
margin-top: 2em;
|
|
font-size: 36px;
|
|
font-weight: 100;
|
|
}
|
|
|
|
hr {
|
|
border: none;
|
|
height: 40px;
|
|
}
|
|
|
|
footer {
|
|
font-size: 14px;
|
|
margin-top: 150px;
|
|
margin-bottom: 20px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: white;
|
|
background-color: red;
|
|
}
|
|
|
|
a[href=""] {
|
|
color: white !important;
|
|
background-color: red !important;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
header a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
main a[href], footer a[href] {
|
|
background-color: #edd;
|
|
color: #844;
|
|
letter-spacing: -0.5px;
|
|
padding: 0 2px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
header a[href], nav a[href] {
|
|
color: inherit;
|
|
background-color: transparent;
|
|
letter-spacing: inherit;
|
|
}
|
|
|
|
a[href] code {
|
|
background-color: transparent;
|
|
}
|
|
|
|
span.cpp, span.cc {
|
|
font-size: 90%;
|
|
}
|
|
|
|
span.eleven {
|
|
font-size: 85%;
|
|
}
|
|
|
|
span#note:target {
|
|
background-color: yellow;
|
|
}
|
|
|
|
.pane {
|
|
float: left;
|
|
width: 49%;
|
|
}
|
|
|
|
.hack {
|
|
clear: both;
|
|
}
|
|
|
|
.pane.left > * {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.pane.right > * {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
main > h3 {
|
|
font-size: 30px;
|
|
font-weight: 100;
|
|
margin-top: 2em;
|
|
color: black;
|
|
}
|
|
|
|
h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
font-weight: inherit;
|
|
}
|
|
|
|
.pane pre {
|
|
font-size: 14px;
|
|
padding-top: 20px;
|
|
padding-bottom: 20px;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
header {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
div.back {
|
|
position: absolute;
|
|
bottom: -0.2em;
|
|
left: -40px;
|
|
font-size: 288px;
|
|
font-weight: bold;
|
|
letter-spacing: 20px;
|
|
opacity: 0.1;
|
|
text-shadow: -20px 20px #444;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.panes {
|
|
clear: both;
|
|
margin-top: 2em;
|
|
margin-bottom: 2em;
|
|
overflow: auto;
|
|
}
|
|
|
|
.tutorial-footer {
|
|
margin-top: 4em;
|
|
}
|
|
|
|
.tutorial-footer.next {
|
|
font-weight: 100;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.tutorial-footer.next a[href] {
|
|
font-weight: 300;
|
|
}
|
|
|
|
li {
|
|
margin-top: 5px;
|
|
}
|