forked from LeaVerou/conic-gradient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
116 lines (97 loc) · 1.74 KB
/
style.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
body {
margin: 0 auto;
max-width: 60em;
padding: 2em;
background-color: #fff;
background: white;
font: 100%/1.5 Palatino Linotype, Palatino, serif;
}
h1 {
font: bold 200% Helvetica Neue, sans-serif;
color: #aaa;
letter-spacing: -.03em;
}
header > h1 {
text-align: center;
font-size: 180%;
color: #f06;
}
header {
font-size: 200%;
}
a {
color: #0ac;
font-weight: bold;
}
a:not(:hover) {
text-decoration: none;
}
ul, ol {
padding-left: 0;
}
textarea {
font: inherit;
font-family: Consolas, Monaco, monospace;
}
#examples {}
#examples article {
display: flex;
margin: 2em 0;
resize: vertical;
}
#examples article:target {
background: white;
position: fixed;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
margin: 0;
box-sizing: border-box;
flex-direction: column;
font-size: 200%;
}
#examples textarea {
flex: 1;
padding: .5em .8em;
border: 0;
margin-left: .5em;
background: hsl(200, 20%, 25%) linear-gradient(rgba(0,0,0,.1) 50%, transparent 0);
background-origin: content-box;
background-size: auto 3em;
background-attachment: local;
color: white;
font-size: 120%;
line-height: 1.5;
}
#examples article:target textarea {
margin: 1em 0 0;
}
#examples div {
width: 300px;
height: 300px;
display: inline-block;
background-size: 100% 100%;
background-position: center;
}
#examples article:target div {
margin: auto;
width: 50vmin;
height: 50vmin;
margin-top: 1em;
}
footer {
text-align: center;
}
#community {
column-count: 2;
}
#community > :not(.twitter-tweet) {
column-span: all;
}
#community .twitter-tweet {
margin: 0 0 1em !important;
-webkit-column-break-inside: avoid;
break-inside: avoid;
}