-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
184 lines (163 loc) · 3.83 KB
/
style.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
/* Applies at root element */
:root {
font-family: 'Jost', sans-serif;
background-image: linear-gradient(to top, #CBD7D0, #F8F8F8);
cursor: default;
color: var(--black);
/* Custom properties that will be reused */
--rust: #B95319;
--green: #96AD90;
--black: #232C27;
--charcoal-blue: #2F4858; /* Included in style guide, though not used */
}
/* Applies to entire body */
body {
margin: 32px;
}
/* Applies to ID card element */
.id-card {
width: 950px;
max-width: 100%;
height: auto;
margin: 67px auto;
padding: 48px;
border: 1px solid var(--green);
border-radius: 8px;
background-color: rgba(255,243,236,.75); /* #FFF3EC at 75% */
box-sizing: border-box;
transition: all .3s ease-in; /* Property change transition */
}
/* Applies to header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 600;
font-size: 28px;
line-height: 34px;
color: var(--rust);
}
/* Applies to elements that need to have a pointer cursor */
.menu .fas.fa-bars, .header .edit-icon, .header .save-icon, .file {
cursor: pointer;
}
/* Applies to ID card when users enter edit mode */
.id-card.edit-mode {
border: 4px dashed var(--rust);
background-color: transparent;
}
/* Applies to column layout */
.column {
display: flex;
}
/* Applies to left column width */
.column .left {
width: 40%;
}
/* Applies to right column width */
.column .right {
width: 60%;
}
/* Applies to h1 elements */
h1 {
font-weight: 600;
font-size: 28px;
line-height: 34px;
letter-spacing: 0;
color: var(--rust);
}
/* Updates color of h2 elements to black */
h1.black {
color: var(--black);
}
/* Applies to h2 elements */
h2 {
font-weight: 700;
font-size: 18px;
line-height: 26px;
letter-spacing: 1.5px; /* Matches design */
}
/* Updates color of h2 elements to rust maintains letter spacing of style guide */
h2.rust {
letter-spacing: 0; /* Matches style guide */
color: var(--rust);
}
/* Applies to body1 elements */
.body1 {
font-weight: 400;
font-size: 18px;
line-height: 26px;
letter-spacing: 0.5px;
}
/* Applies to body2 elements */
.body2 {
font-weight: 500;
font-size: 10px;
line-height: 16px;
letter-spacing: 0.5px;
width: 100%;
}
/* Applies to the elements of labels and corresponding details */
.label-details {
text-align: left;
display: flex;
}
/* Applies to the elements of labels */
.label-details h2 {
width: 40%;
margin-top: 0;
margin-right: 0;
margin-bottom: 3px;
margin-left: 0;
padding: 0;
}
/* Applies to the elements of details to labels */
.label-details .body1 {
width: 50%;
margin-top: 0;
margin-right: 0;
margin-bottom: 3px;
margin-left: 0;
padding: 0;
word-break: break-word;
}
/* Applies to files container */
.uploaded-files {
display: flex;
justify-content: start;
gap: 10px;
margin-top: 10px;
}
/* Applies to file elements */
.file {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 83px;
height: 92px;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
padding-top: 16px;
background-color: #fdfdfb; /* Style guide states #497D7E */
border: 0.25px solid var(--black);
border-radius: 12px;
box-sizing: border-box;
}
/* Applies to file-img elements, the associated assets with the file type */
.file-img {
width: 51px;
height: 56px;
object-fit: contain;
}
/* Update style based on common breakpoint of tablet screen size */
@media only screen and (max-width: 768px) {
.column .left, .column .right, .label-details h2, .label-details .body1 {
width: 100%;
}
.label-details, .column {
flex-direction: column;
}
}