-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.css
More file actions
203 lines (182 loc) · 5.13 KB
/
theme.css
File metadata and controls
203 lines (182 loc) · 5.13 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/**
============================================
; Title: theme.css
; Author: John Davidson
; Date: 05/28/2023
; Description: CSS styling to be used for WEB-330 assignments.
============================================
*/
/** The styling for content on the page when light-mode is selected. */
body.light-theme {
--text-color: #000;
--background-color: #fff;
--anchor-color: #4f3674;
--h1-background-color: #3c275a;
--h1-border-color: #d6a800;
--heading-background-color: #3c275a;
--heading-color: #fff;
--heading-border-color: #d6a800;
--anchor-hover-color: #4f3674;
--anchor-hover-background-color: #d6a800;
--card-background-color: #fff;
--card-title-color: #4f3674;
--btn-background-color: #4f3674;
--btn-color: #fff;
--btn-hover-background-color: #d6a800;
--btn-hover-color: #4f3674;
--input-border-color: #ccc;
/** Added light-theme styling for the table created in Assignment 4.2 - Calorie App. */
--table-header-background-color: #4f3674;
--table-header-color: #fff;
--table-border-color: #ddd;
--table-hover-background-color: #D6A800;
--table-hover-color: #4F3674;
}
/** The styling for content on the page when dark-mode is selected. */
body.dark-theme{
--text-color: #fafafa;
--background-color: #303030;
--anchor-color: #fff;
--h1-background-color: #9c27b0;
--hl-border-color: #9c27b0;
--heading-background-color: #424242;
--heading-color: #fff;
--heading-border-color: #424242;
--anchor-hover-color: #D176e1;
--anchor-hover-background-color: #303030;
--card-background-color: #424242;
--card-title-color: #D176e1;
--btn-background-color: #D176e1;
--btn-color: #fff;
--btn-hover-background-color: #7d4787;
--btn-hover-color: #fff;
--input-border-color: #303030;
/** Added dark-theme styling for the table created in Assignment 4.2 - Calorie App. */
--table-header-background-color: #d176e1;
--table-header-color: #fff;
--table-border-color: #303030;
--table-hover-background-color: #7D4787;
--table-hover-color: #fff;
}
/** The styling for font-family and color within the body element. */
body {
font-family: "Oswald", Verdana, Arial, sans-serif;
color: var(--text-color);
background-color: var(--background-color);
}
/** The styling for anchor links. */
a {
color: var(--anchor-color);
text-decoration: none;
}
/** The styling for when an anchor link is hovered. */
a:hover {
background-color: var(--anchor-hover-background-color);
color: var(--anchor-hover-color);
}
/** The styling for h1 headings. */
h1 {
color: var(--heading-color);
background-color: var(--h1-background-color);
padding: 10px;
border: 1px solid;
border-color: var(--h1-border-color);
}
/** The styling for h2, h3, and h4 headings. */
h2, h3, h4 {
color: var(--heading-color);
background-color: var(--heading-background-color);
padding: 10px;
border: 1px solid;
border-color: var(--heading-border-color);
}
/** The styling for the use of a card. */
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
width: 50%;
background-color: var(--card-background-color);
}
/** The styling for the use of a card title. */
.card-title {
text-align: center;
font-size: 2em;
color: #4F3674;
font-weight: 400;
padding: 5px;
background-color: var(--card-title-color);
}
/** The styling for the use of a card's content. */
.card-content {
padding: 2px 16px;
}
/** The styling for when a card is being hovered over. */
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
/** The styling for the use of a button. */
.btn {
border: none;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
padding: 15px 32px;
color: #000;
}
/** The styling for the button's primary coloring. */
.btn-primary {
background-color: var(--btn-background-color);
color: var(--btn-color);
}
/** The styling for the button's primary coloring when being hovered over. */
.btn-primary:hover {
background-color: var(--btn-hover-background-color);
color: var(--btn-hover-color);
}
/** The styling for use of an input field. */
.input {
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
border-color: var(--input-border-color);
box-sizing: border-box;
}
/** The styling for the use of a drop down menu. */
.drop-down-menu {
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
border-color: var(--input-border-color);
box-sizing: border-box;
}
/** New styling added for the table created in Assignment 4.2 - Calorie App. */
/** The styling for table. */
.table {
border-collapse: separate;
border: 1px solid;
width: 100%;
margin: auto;
font-size: 18px;
}
/** The styling for the table header. */
.table th {
background-color: var(--table-header-background-color);
color: var(--table-header-color);
}
/** The styling for the table data. */
.table td {
border: 1px solid var(--table-border-color);
}
/** The styling for the table row when hovered over. */
.table tr:hover {
background-color: var(--table-hover-background-color);
color: var(--table-hover-color);
cursor: pointer;
}