-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
103 lines (88 loc) · 1.73 KB
/
styles.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
/* styles css */
:root {
--cherry: #532827;
--light-cherry: #6c2726;
--dark-cherry: #4c2827;
--black: #000;
--white: #ddd;
}
body {
font-family: Georgia, 'Times New Roman', Times, serif;
background: #333 url("assets/img/cutlery.jpg") center center no-repeat;
background-size: cover;
color: var(--cherry);
}
#container {
width: 400px;
margin: 40px auto 0px;
padding: 50px;
box-sizing: border-box;
background: url("assets/img/paper-pattern.jpg") top left repeat;
box-shadow: 0 10px 15px -8px var(--black);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
text-align: center;
}
h1 {
margin: 0 0 20px;
padding: 0 0 20px;
border-bottom: 1px solid var(--white);
}
/* Form */
form {
text-align: left;
}
form label {
display: block;
margin: 25px 0;
font-family: bold;
font-size: 17px;
}
form input,
form select {
padding: 8px;
margin: 10px 0;
}
form input[type="text"] {
width: 90px;
}
button {
background-color: var(--light-cherry);
color: var(--white);
border: none;
border-bottom: 4px solid #222;
text-transform: uppercase;
font-size: 18px;
padding: 20px 30px;
width: 100%;
}
button:hover {
background-color: var(--dark-cherry);
border-bottom-color: var(--black);
}
button:active {
position: relative;
top: 1px;
}
/* Total tip */
#total-tip {
font-size: 50px;
margin-top: 40px;
}
#total-tip:before {
content: "Tip amount";
font-size: 14px;
font-weight: bold;
display: block;
text-transform: uppercase;
}
#total-tip sup {
font-size: 24px;
top: -18px;
}
#total-tip small {
font-size: 14px;
font-weight: bold;
display: block;
}