-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontactstyles.css
101 lines (97 loc) · 2.41 KB
/
contactstyles.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
/* Basic styles for the body */
* {
font-size: 16px;
}
body {
font-family: raleway, sans-serif;
background-color: rgb(245, 245, 245);
}
/* Hero section styles */
.ContactContent {
margin-top:6em;
color:rgba(0, 0, 0, 70%);
}
h1 {
margin-top: 7em;
margin-bottom: 2em;
padding-left:2em;
font-size: 1.1em;
font-weight: 300;
color:rgba(0, 0, 0, 60%);
text-transform: uppercase;
display: block;
}
/*CONTACT PAGE START*/
h2, address, form {
margin-left: 3em;
margin-right: 3em;
}
form { /* Start of: form flexing to the right of the viewport. From: https://www.quackit.com/css/grid/tutorial/form_layout_with_auto_placement.cfm */
display: grid;
grid-template-columns: [labels] auto [controls] 1fr;
grid-auto-flow: row; /*https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow*/
row-gap: 0.8em;
column-gap: 4em;
}
form label {
grid-column: labels;
grid-row: auto;
font-size: 1em;
}
form input, form textarea {
height: 2em;
border-color:rgba(0, 0, 0, 40%);
border-radius: 0.2em;
border-width: 0.005em;
grid-column: controls;
grid-row: auto;
font-size: 1em;
line-height: 1.2;
padding:1em;
font-family: 'poppins', sans-serif;
color:rgba(0, 0, 0, 70%);
background-color: rgb(250, 250, 250);
}
form .send {
grid-column: 2;
height: 2em;
border: none;
text-align: left;
padding-left: 0em;
padding-top: 0em;
background-color: rgba(0,0,0,0%);
color: rgba(0,0,0,90%);
text-transform: uppercase;
}
form .send:hover {
color:black;
cursor: pointer;
}
/* End of: form flexing to the right of the viewport. From: https://www.quackit.com/css/grid/tutorial/form_layout_with_auto_placement.cfm */
form textarea {
height: 7em;
resize: vertical; /*allows to resize the comment box vertically only*/
}
address {
font-size:1em;
font-style: normal;
margin-top:2em;
}
.privacytext {
font-size:0.8em;
font-style: normal;
margin-top:2em;
margin-left:3em;
padding-left:0;
margin-right: 3em;
text-align: justify;
}
/*CONTACT PAGE END*/
/* Responsive styles for the contact form */
@media (max-width: 768px) {
address, form, .privacytext {
margin-left: 2.5em;
margin-right: 1.5em;
column-gap: 1.5em;
}
}