-
Notifications
You must be signed in to change notification settings - Fork 0
/
cssHome.css
278 lines (238 loc) · 5.63 KB
/
cssHome.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
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
body, html {
height: 100%;
margin: 0 0 0 0;
}
/* The hero image */
.hero-image {
/* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("comsci2.jpg");
/* Set a specific height */
/* height: 100%; */
/* Position and center the image to scale nicely on all screens */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
/* Place text in the middle of the image */
.hero-text {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
}
/* Navbar container */
.navbar {
overflow: hidden;
background-color: #333;
/* background-color: whitesmoke; */
/* font-family: Arial; */
font-family: "monaco", monospace;
}
/* Sticky nav ber */
/* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky {
position: fixed;
top: 0;
width: 100%;
}
/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
padding-top: 60px;
}
/* Links inside the navbar */
.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* The dropdown container */
.dropdown {
float: left;
overflow: hidden;
}
/* Dropdown button */
.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: inherit; /* Important for vertical align on mobile phones */
margin: 0; /* Important for vertical align on mobile phones */
}
/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
background-color: #fc9483;
}
/* Dropdown content (hidden by default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
float: none;
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
background-color: #ddd;
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
display: block;
}
/* Container holding the image and the text*/
.container {
position: relative;
}
/* img text block */
/* Bottom right text */
.text-block-head {
position: absolute;
/* position:fixed; */
bottom: 45%;
right: 35%;
background-color: rgb(31, 27, 27,0.8);
/* background-color: rgb(252, 148, 131, 0.8); */
/* opacity */
/* opacity: 0.2; */
color: white;
padding-left: 20px;
padding-right: 20px;
}
.text-block {
/* position: absolute; */
/* width: 80%;
height: auto; */
position: relative;
color: #252222;
padding-left: 15%;
padding-right: 15%;
/* background-color:#f9f9f9; */
}
/* .text-block-center {
position: center;
color: #252222;
padding-left: 5%;
padding-right: 30%;
} */
.fontHead1 {
font-family: "monaco", monospace;
font-size: 28pt;
color: white;
}
.fontHead2 {
font-family: "monaco", monospace;
font-size: 20pt;
color: #fe7d6a;
}
/* font thai css rules specific family */
/* font-family: 'Pridi', serif; */
.fontHeadTh {
font-family: 'Pridi', serif;
font-size: 20pt;
color: #fe7d6a;
/* color: #252222; */
}
.fontTh {
font-family: 'Pridi', serif;
font-size: 14pt;
/* color: #252222; */
}
.fontRv {
font-family: 'Pridi', serif;
font-size: 12pt;
}
.buttonSeeMore {
font-family: "monaco", monospace;
color: #fff;
display: block;
width: 10%;
border: none;
background-color: #252222;
padding: 14px 28px;
font-size: 14px;
cursor: pointer;
text-align: center;
float:right;
margin-right: 20%;
/* margin-bottom: 0%; */
}
.buttonSeeMore:hover {
color: #fff !important ;
background-color: #fc9483 !important;
}
img {
width: 60%;
height: auto;
display: block;
margin-right: auto;
margin-left: auto;
}
.box {
border-radius: 15px 15px 15px;
background-color: #f6f3ef;
width: 40%;
height: 60%;
margin: auto;
margin-top: 5%;
/* margin-bottom: 5%; */
}
.container2 {
/* padding: 15px 30px; */
/* padding: 10px 30px 20px; */
padding: 5% 10% 5% 10%;
}
.form-submit-button {
background: #fc9483;
color: white;
border: 5px solid #f6f3ef;
width: 20%;
height: 20%;
font-size: medium;
font-family: 'Pridi', serif;
margin: 5% 10% 0 75%;
/* border-radius: 20px; */
/* box-shadow: 5px 5px 5px #eee; */
/* text-shadow: none; */
}
.form-submit-button:hover {
background: #fff;
color: #252222;
/* border: 5px solid #f6f3ef;
width: 20%;
height: 20%;
font-size: medium;
font-family: 'Pridi', serif; */
/* margin: auto; */
/* border-radius: 20px; */
/* box-shadow: 5px 5px 5px #eee; */
/* text-shadow: none; */
}
footer .font {
font-family: "monaco", monospace;
color: #252222;
font-size: 8pt;
}
footer {
/* background-color:#b4b4b4; */
height: fit-content;
margin-top: 10%;
padding: 2% 5% 2% 10%;
}