This repository has been archived by the owner on Nov 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
84 lines (72 loc) · 1.91 KB
/
main.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
body {
font-family: 'San Francisco', 'Segoe UI', 'Arial', sans-serif;
/* The text-align property tells the browser to
*
* align the text
* in the box
* like this
*
* instead of
* like this, aligned
* to the left, which is the default.
*
*/
text-align: center;
}
#menubar {
/* These four lines align the header
* and the "about" link on the same line.
*
* Read more about flex-box CSS styles
* at https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox */
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
/* These two lines add some "padding" (empty space)
* to the left and right of the menubar */
padding-left: 16%;
padding-right: 16%;
}
.inputBox {
/* These four lines align the LABEL and INPUT
* boxes on the same horizontal line.
*
* Don't worry too much about understanding what
* these lines do today. */
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-left: 16%;
padding-right: 16%;
}
label, input, button {
font-size: 24px;
}
input {
/* min-width sets the minimum allowed size
* for this element. No matter how small or big
* the rest of the page was resized, the input
* box is guaranteed at least 100px width */
min-width: 100px;
border-width: 2px;
border-style: solid;
border-color: grey;
}
button {
background: grey;
padding-top: 6px;
padding-bottom: 6px;
padding-left: 12px;
padding-right: 16px;
/* "color" by itself stands for the text color */
color: #fff;
box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .4);
}
/* The ":hover" selector only applies styles when
* you're hovering the mouse over the element */
button:hover {
opacity: .7;
}