ksgi
/
index.css
132 строки · 4.3 Кб
1html, body { margin: 0;2padding: 0; }3body { color: #222;4font-family: "Alegreya sans", sans-serif; }5code, pre { font-size: 65%; }6pre { margin: 0; }7a { text-decoration: none;8color: blue; }9strong, b { font-weight: 700; }10body > header { background-color: #333;11padding: 5rem 0 0 0;12color: #fff; }13body > header a { color: #dd5; }14body > header a:hover { color: #ff0; }15#breadcrumbs { font-size: 90%; }16#version ul { margin: auto 0;17padding: 0;18list-style-type: none; }19#version nav li { margin: 0; }20#usage nav ul { list-style-type: none;21padding: 0; }22#header { padding-top: 2em; }23#header nav { font-size: 90%;24padding: 2pt 0;25display: -webkit-box;26display: -ms-flexbox;27display: flex; }28#header nav > * { padding: 4pt 0; }29#header nav > :last-child { -webkit-box-flex: 1;30-ms-flex: 1;31flex: 1;32text-align: right; }33#header nav > :last-child a { border: 3px solid rgba(255, 255, 50, 0.5);34border-radius: 4pt;35transition: border linear 0.2s;36padding: 4pt 8pt; }37#header nav > :last-child a:hover { border: 3px solid rgba(255, 255, 50, 0.9); }38#header nav .version { border-right: thin solid silver;39color: #abc;40padding-right: 0.5rem;41margin-right: 0.5rem; }42#header nav .fa { font-size: 80%; }43#version { background-color: #eee; }44#version a,
45#version time,
46#version span.version { font-style: normal; }47#version div.content > div + div { margin-top: 1rem; }48#version nav .title { font-weight: 500;49margin-bottom: 1em; }50#version .archive { text-align: center; }51h1 { font-size: 175%;52margin: 0;53line-height: 34pt;54font-weight: 400; }55.nm, .file { font-style: italic; }56h1 .nm { text-shadow: 1px 1px #666;57font-style: inherit; }58h1 .nd { text-shadow: 1px 1px #333; }59#intro { font-size: 125%; }60#sample { color: #666;61padding: 1rem 0;62background-color: #f6f6f6; }63#sample > input { display: none; }64#sample > input ~ nav label,
65#sample > input ~ pre { max-height: 0;66display: block;67opacity: 0;68overflow: hidden; }69#sample > input ~ pre { transition: opacity 0.5s ease-in; }70#sample > input ~ nav label { cursor: pointer; }71#sample { text-align: left; }72#sample nav label { color: #44b; }73#sample nav { margin-bottom: 0.5rem; }74#sample .fa { font-size: 80%; }75#show-comments:checked ~ nav #label-nocomments,
76#show-nocomments:checked ~ nav #label-comments,
77#show-comments:checked ~ #comments,
78#show-nocomments:checked ~ #nocomments79{ max-height: 1000em;80opacity: 1; }81footer { margin-top: 1em;82text-align: center;83font-size: smaller;84color: #666; }85footer a { color: #000; }86footer span { border-left: thin solid #ccc;87padding-left: 1ex; }88footer div + div { margin-top: 0.5em; }89body > section h2 { font-size: 120%;90font-weight: 500;91text-align: center;92font-variant: small-caps;93color: #333; }94body > section h3 { font-size: inherit;95font-weight: inherit;96margin-bottom: 0.25ex;97color: #333; }98#version > div, body > section { padding: 1rem 0; }99figure figcaption { margin: 0.5em 0.2em; }100figure { margin: 0;101text-align: center;102color: #444; }103dd { margin: 0 0 1em 0; }104pre.prettyprint { border: none;105line-height: 1.4em;106color: #333;107overflow: hidden;108width: auto; }109pre.prettyprint .cpp { color: rgb(150, 150, 255); }110pre.prettyprint .ident { color: rgb(0, 100, 0); }111pre.prettyprint .flow { color: rgb(200, 100, 0); }112pre.prettyprint .literal { color: rgb(100, 0, 0); }113footer { padding: 1ex;114margin-top: 1em;115margin-bottom: 1em; }116.flag { font-weight: 500; }117#mannav ul { display: grid;118font-size: 90%;119line-height: 1.3em;120grid-template-columns: auto auto auto; }121
122@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {123h1 { font-size: 125%;124line-height: 125%; }125#intro { font-size: 100%; }126figure img { display: block;127max-width: 400px;128margin-left: auto;129margin-right: auto;130width: 100%; }131#mannav ul { grid-template-columns: auto auto; }132}
133