-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
138 lines (118 loc) · 2.18 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
* {
box-sizing: border-box;
}
body {
font-family: Georgia, 'Times New Roman', Times, serif;
color: saddlebrown;
}
main {
width: 70%;
margin: 3rem auto;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
text-align: center;
}
header {
text-align: center;
}
#siteLogo {
width: 200px;
z-index: 1;
}
h1 {
font-size: 5rem;
color: rosybrown;
line-height: .8;
margin: 3rem 0 1rem;
}
section {
/* This element will be a grid item, but also a flex container */
background-color: rgba(211, 187, 176, 0.3);
height: 80%;
grid-row-end: 2;
grid-column-start: 1;
grid-column-end: 1;
display: flex;
justify-content: center;
align-items: center;
align-items: flex-start;
}
.product-image-1,
.product-image-2,
.product-image-3 {
max-width: 50%;
max-height: 50%;
}
/*-- add hover states so the user can tell what
behavior is expected of them--*/
section img:hover {
border: 5px solid #e65c00;
}
/* once voting ends */
section.no-voting img:hover {
border: 5px solid transparent;
cursor: none;
}
/* -- results list -- */
ul {
margin: 1rem;
padding: 0;
list-style: none;
}
li {
margin: .5rem;
}
/*-- add hover states so the user can tell what
behavior is expected of them--*/
section img:hover {
border: 5px solid #e65c00;
}
/* once voting ends */
section.no-voting img:hover {
border: 5px solid transparent;
cursor: none;
}
/* -- button -- */
#vote-button {
max-width: 100px;
max-height: 50px;
}
#vote-button:hover {
background-color: rgb(211, 187, 175);
}
/* -- results container -- */
#results-container {
max-width: 100%;
height: 5rem;
overflow-y: scroll;
margin-top: 2rem;
padding: 1rem;
}
#results-container h2 {
font-size: 1.5rem;
color: rosybrown;
margin-bottom: 1rem;
}
#results-container button {
background-color: darkgray;
color: lightgrey;
padding: .5rem 1rem;
font-size: 1rem;
margin-top: 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
}
#results-container button:hover {
background-color: rgb(211, 187, 175);
}
.dark {
color: cornsilk;
background-color: #555;
}
.light {
color: black;
background-color: cornsilk;
}