This repository was archived by the owner on Jan 9, 2026. It is now read-only.
forked from jaandrle/dollar_dom_component
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamples.css
More file actions
94 lines (94 loc) · 1.74 KB
/
examples.css
File metadata and controls
94 lines (94 loc) · 1.74 KB
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
94
body{
color: #eeeeee;
background: #2b2b2b;
padding: 0 0 1em 0;
}
a{
color: #b8b8ff;
}
a:hover{
color: white;
}
summary {
cursor: pointer;
}
article{
width: 80%;
min-width: 75em;
max-width: 85em;
margin: auto;
}
h1, h2 {
background: #222;
border: 1px solid #222;
padding: .5em;
margin-left: -.5em;
}
h2:target {
border-color: currentColor;
}
p{
font-size: 1.1em;
}
.notes{
margin-top: .25em;
font-size: .75em;
}
input, button {
background: rgba(0,0,0,1);
border: 1px solid #97f497;
color: #ffffff;
padding: .25em .5em;
margin: 0 0 .25em 0;
}
input:hover, button:hover, input:focus, button:focus {
border-color: currentColor;
}
[contenteditable=""]{
display: block;
font-family: "Lucida Console", Monaco, monospace;
font-size: .75em;
line-height: 1.5em;
font-weight: bold;
white-space: break-spaces;
padding: 1rem;
margin-top: -.25rem;
border: .25rem dotted #97f497;
background: #222;
}
[contenteditable=""]:before{
content: "JavaScript (editable):";
padding-bottom: 1em;
color: #97f497;
font-weight: bold;
display: block;
font-size: .8rem;
}
style[contenteditable=""]:before{
content: "CSS (editable)";
}
@media screen and (max-width: 640px){
article{
width: 90%;
min-width: initial;
}
[contenteditable=""] {
white-space: pre;
overflow: scroll;
border-right-style: outset;
}
}
.output{
padding: 1rem;
margin: 0;
border: .25rem dotted #f0e09a;
}
.output:before{
content: "Output:";
color: #f0e09a;
font-weight: bold;
display: block;
padding-bottom: 1.5rem;
}
.example_red_color{ color: #ff9b9b; }
.example_blue_color{ color: #36c7ff; }