forked from globant-ui/startup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
113 lines (94 loc) · 1.91 KB
/
style.css
File metadata and controls
113 lines (94 loc) · 1.91 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
* {
font-family: sans-serif;
/* Global value of 14px */
/* font-size: 14px; */
}
header.header {
background-color: red;
width: 100%;
height: 40px;
border: 2px solid gray;
padding: 15px;
text-align: center;
}
section article h3 {
text-align: center;
background-color: green;
width: 220px;
height: 20px;
border: 2px solid gray;
margin: 20px;
padding: 20px;
}
section footer {
text-align: center;
background-color: orange;
}
footer {
text-align: center;
width: 100%;
clear: both;
}
header.header {
font-size: 46px;
}
footer.footer, aside.sidebar {
font-size: 10px;
}
section.content {
font-size: 14px;
}
nav.navigation {
font-size: 12px;
}
header.header,
footer.footer,
aside.sidebar {
background-color: magenta;
}
nav.navigation {
background-color: blue;
}
nav ol li {
display: inline-block;
margin-left: 10%;
}
nav a.color:link, a.color:visited {
color: white;
}
nav a.color:hover, a.color:active {
color: magenta;
}
div {
float: left;
width: 25%;
height: 130px;
border: 2px solid gray;
padding: 15px;
margin: 20px;
}
aside#more-courses {
float: right;
width: 25%;
height: 130px;
border: 2px solid gray;
padding: 15px;
margin: 20px;
}
/*
6. How could you add weight to the global font definition to win over the classes added by point 3?
*/
header#title,
footer#footerId,
section#courses,
nav#menu,
aside#more-courses {
font-size: 15px;
}
/*
7. Imagine there is a declaration like class=”oh-no-inline-styles” style=”background:red” and you need to change the background to green without changing the inline style. How could you accomplish this?
-With !important
*/
.oh-no-inline-styles {
background-color: green !important;
}