iwmlib/css/doctest.css

267 lines
4.2 KiB
CSS
Raw Normal View History

2019-12-09 14:29:26 +01:00
:root {
--white: rgb(250, 250, 250);
--light-gray: rgb(219, 219, 219);
--gray: rgb(66, 66, 66);
--black: rgb(20, 20, 20);
--dark-background: rgb(50, 50, 50);
--border-radius: 5px;
}
2019-07-05 08:43:23 +02:00
html {
padding: 0;
font-size: 16px;
2019-12-09 14:29:26 +01:00
background: var(--white);
color: var(--black);
font-family: 'Open Sans', Arial, sans-serif;
max-width: 1200px;
2019-07-05 08:43:23 +02:00
margin: 0 auto;
2019-03-29 08:49:53 +01:00
}
2019-12-09 14:29:26 +01:00
.dark-mode nav{
border-color: var(--white);
}
nav {
margin-top: 50px;
min-width: 30%;
border-radius: var(--border-radius);
display: inline-block;
padding: 20px 30px;
/* background-color: var(--light-gray); */
border: 1px solid var(--black);
}
nav > h3 {
margin: 0;
}
nav > ol a {
font-weight: bold;
}
html.dark-mode {
2019-12-09 14:29:26 +01:00
background: var(--dark-background);
color: #ccc;
}
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
color: white;
}
2019-12-09 14:29:26 +01:00
a {
color: #569cd6;
font-weight: bold;
}
2019-12-09 14:29:26 +01:00
.dark-mode a:hover {
color: white;
}
2019-12-09 14:29:26 +01:00
.dark-mode button {
border: 1px solid rgb(211, 211, 211);
color: rgb(211, 211, 211);
background: linear-gradient(to top, rgb(53, 53, 53), rgb(73, 73, 73));
}
button {
background-color: var(--white);
border: 1px solid var(--gray);
color: var(--gray);
padding: 10px 20px;
border-radius: 5px;
transition: transform 0.2s;
}
label {
display: flex;
align-items: center;
user-select: none;
cursor: pointer;
}
input[type='checkbox'] {
display: none;
}
input[type='checkbox'] + .checkbox {
position: relative;
margin-right: 10px;
width: 32px;
height: 32px;
}
.controls {
display: flex;
}
.controls > * {
margin-right: 1em;
}
.dark-mode .checkbox {
background-color: var(--gray);
border: 1px solid var(--white);
}
.checkbox {
display: inline-block;
border-radius: 3px;
background-color: var(--white);
border: 1px solid var(--black);
}
.checkbox:after {
content: '';
position: absolute;
}
input[type='checkbox']:checked + .checkbox {
background-color: rgb(174, 238, 78);
}
input[type='checkbox']:checked + .checkbox:after {
left: 11px;
top: 6px;
width: 5px;
height: 12px;
border: solid var(--white);
border-width: 0 4px 4px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
button:active {
transform: scale(0.98);
}
button:hover {
filter: brightness(0.95);
}
button:focus {
box-shadow: 0 0 3px 1px #569cd6;
outline: none;
}
a {
text-decoration: none;
}
.title {
position: relative;
font-size: 2.5rem;
}
.description {
font-style: italic;
margin-bottom: 3rem;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
}
.doctest {
margin: 0;
padding-top: 50px;
padding-bottom: 50px;
box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.collapsed .doctest {
height: 0;
margin: 0;
padding: 0;
}
.doctest-wrapper {
overflow: hidden;
border-radius: 5px;
margin-top: 1em;
margin-bottom: 1em;
}
2019-12-09 14:29:26 +01:00
.doctest-titlebar {
display: flex;
align-items: center;
color: whitesmoke;
background-color: #111;
padding: 10px;
}
.doctest-section-title {
margin: 0;
margin-left: 40px;
padding: 0;
font-size: 1.3em;
}
2019-03-29 08:49:53 +01:00
.grayBorder {
border: 1px solid lightgray;
}
.insetPadding {
padding: 16px;
}
.interactive {
/*** For regions observed by InteraktionDelegates and -Mappers ***/
-ms-content-zooming: none;
touch-action: none;
}
.unselectable {
2019-07-05 08:43:23 +02:00
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
2019-03-29 08:49:53 +01:00
}
body {
padding: 16px;
}
canvas {
-ms-content-zooming: none; /** Crucial for MS Edge pointer events **/
touch-action: none; /** Crucial for MS Edge? **/
2019-03-29 08:49:53 +01:00
}
#runtime-errors {
left: -8px;
margin-left: 8px;
}
.intrinsic-container {
2019-07-05 08:43:23 +02:00
position: relative;
height: 0;
overflow: hidden;
2019-03-29 08:49:53 +01:00
}
/* 16x9 Aspect Ratio */
.intrinsic-container-16x9 {
2019-07-05 08:43:23 +02:00
padding-bottom: 56.25%;
2019-03-29 08:49:53 +01:00
}
/* 4x3 Aspect Ratio */
.intrinsic-container-4x3 {
2019-07-05 08:43:23 +02:00
padding-bottom: 75%;
2019-03-29 08:49:53 +01:00
}
.intrinsic-container iframe {
2019-07-05 08:43:23 +02:00
position: absolute;
border: 0;
top: 0;
left: 0;
width: 100%;
height: 100%;
2019-03-29 08:49:53 +01:00
}