-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
161 lines (156 loc) · 2.92 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
body{
margin: 0;
background-image: url(colorful_dots_on_black.jpg);
font-family: sans-serif;
}
header{
padding: 5px;
}
body>header{
text-align: center;
color: yellow;
height: 60px;
margin: 0;
font-size: 2.5em;
font-weight: bold;
background: linear-gradient(-90deg,blue 33%,green 33%,green 66%,red 66%); /* Standard syntax */
}
/*** ARTICLES ***/
section{
display: inline-block;
width: 76%;
}
article>footer{
font-style: italic;
text-decoration-line: underline;
text-decoration-color: grey;
}
article{
margin: 20px 10px 20px 10px;
padding: 12px;
border-radius: 10px;
background: none;
background-color:rgba(255,255,255,0.9);
}
#webColors{
font-size:1.5em;
border-radius: 5px;
color:white;
background-color: red;
}
#webSafeColors{
font-size:1.5em;
border-radius: 5px;
color:black;
background-color: orange;
}
#RGB{
font-size:1.5em;
border-radius: 5px;
color:black;
background-color: yellow;
}
#RGBA{
font-size:1.5em;
border-radius: 5px;
color:white;
background-color: green;
}
header[id*='#HSLHSV']{
font-size:1.5em;
border-radius: 5px;
color:white;
background-color: blue;
}
header[id*='#lorem']{
font-size:1.5em;
border-radius: 5px;
color:white;
background-color: purple;
}
div:first-letter {
font-size: 50px;
}
div:first-line{
font-style: italic;
}
article a{
text-decoration: none;
color: grey;
}
article:last-child span:first-of-type
{
font-style: italic;
color: blue;
}
/*** NAVIGATION ***/
aside{
vertical-align: top;
display: inline-block;
width: 22%;
}
nav{
margin: 20px 10px 20px 10px;
padding: 5px;
border-radius: 10px;
background: none;
background-color:rgba(255,255,255,0.9);
}
nav>header{
font-size: 1.5em;
color: black;
text-decoration-line: underline;
}
ul{
margin: 0;
list-style-type: none;
padding-left: 10px;
}
li{
padding: 5px;
}
nav a:before{
display: inline-block;
background: green; /* For browsers that do not support gradients */
background: linear-gradient(greenyellow,yellowgreen,green); /* Standard syntax */
background-size: 20px 20px;
line-height: 15px;
margin-right: 10px;
border-radius: 15px;
color:white;
width:15px;
height:15px;
content: '\2714';
}
a{
text-decoration: none;
color: black;
}
a:visited {
color: grey;
}
/* mouse over link */
nav li:nth-child(1):hover {
border-radius: 5px;
background-color: red;
}
nav li:nth-child(2):hover {
border-radius: 5px;
background-color: orange;
}
nav li:nth-child(3):hover {
border-radius: 5px;
background-color: yellow;
}
nav li:nth-child(4):hover {
border-radius: 5px;
background-color: green;
}
nav li:nth-child(5):hover {
border-radius: 5px;
background-color: blue;
}
nav li:nth-child(6):hover {
border-radius: 5px;
background-color: purple;
}