-
Notifications
You must be signed in to change notification settings - Fork 4
/
demo.css
93 lines (83 loc) · 1.68 KB
/
demo.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
body {
background-color: darkslategrey;
}
small {
display: block;
margin: 2em;
right: 0;
left: 0;
text-align: center;
color: darkgrey;
font-family: sans;
}
small a, small a:visited {
color: darkgrey;
}
/* display */
.basicode {
/* 4*3 aspect ratio */
height: 36em;
width: 48em;
background-color: #333;
border: 0.4em solid grey;
outline: none;
/* this centers the screen horizontally, for some reason */
margin: auto;
display: table;
/* */
margin-top: 1rem;
}
.basicode:focus {
border: 0.4em solid black;
}
/* Tabbed example */
/* https://www.w3.org/Style/Examples/007/target.en.html#tab3 */
div.tabs {
height: 41em;
width: 58em;
position: relative;
z-index: 0;
margin: auto;
display: table;
}
div.tabs > div {
display: inline;
}
div.tabs > div > a {
font-family: sans;
text-decoration: none;
color: black;
padding: 0.2em 2em 0.2em 2em;
margin: 0;
background: lightgrey;
border-bottom: 1px solid lightgrey;
border-top-left-radius: 0.5em;
border-top-right-radius: 0.5em;
}
/* inactive tabs */
div.tabs > div:not(:target) > a {
border-bottom: 0;
background: darkgrey;
}
/* active or default tab */
div.tabs > div:target > a {
background: lightgrey;
border-bottom: 1px solid lightgrey;
}
div.tabs > div > div {
background: lightgrey;
border: 1px solid lightgrey;
z-index: -2;
left: 0;
top: 1.3em;
bottom: 0;
right: 0;
padding: 0.3em;
border-bottom-left-radius: 0.5em;
border-bottom-right-radius: 0.5em;
border-top-right-radius: 0.5em;
position: absolute;
}
div.tabs > div:target > div {
z-index: -1
}