-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
99 lines (91 loc) · 3.15 KB
/
Copy pathstyle.css
File metadata and controls
99 lines (91 loc) · 3.15 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
/******************************************************************************
universal selector css rules
******************************************************************************/
* {
box-sizing: border-box;
font-size: 16px;
margin: 0;
}
/******************************************************************************
form css rules
******************************************************************************/
form {
text-align: center;
margin: 30px 0 10px;
}
/******************************************************************************
input field css rules
******************************************************************************/
input {
padding: 10px;
width: 60%;
border-radius: 7px;
border: 2px solid lightgray;
}
/******************************************************************************
container class css rules
******************************************************************************/
.container {
width: 90%;
margin: 0 auto;
display: flex;
flex-direction: column;
}
/******************************************************************************
photo class css rules
******************************************************************************/
.photo {
width: 90%;
margin: 20px auto;
text-align: center;
}
/******************************************************************************
images with photo class css rules
******************************************************************************/
.photo img {
width: 90%;
}
/******************************************************************************
class hidden css rules
which is used within javascript code to manipulate images
******************************************************************************/
.hidden {
display: none;
}
/******************************************************************************
Tablet media query css rules
input field: shrink width
class container: changes flex from column to row, and centered
class photo: shrink width, and set margins
image: increase height
******************************************************************************/
@media (min-width: 768px) {
input {
width: 40%;
}
.container {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.photo {
width: 30%;
margin: 10px;
}
.lightbox .lb-image {
border-radius: 20px;
}
}
/******************************************************************************
desktop media query css rules
class photo: shrink width
image: shrink height
******************************************************************************/
@media (min-width: 1024px) {
.photo {
width: 20%;
}
.lightbox .lb-image {
border-radius: 50px;
}
}