-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.scss
140 lines (112 loc) · 1.88 KB
/
main.scss
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
$background_C: white;
$serif: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
'Helvetica Neue', sans-serif;
body {
img {
max-width: 100%;
max-height: 100%;
}
font: {
family: $serif;
size: 14px;
}
width: 100%;
height: 100%;
background: $background_C;
header {
width: 100%;
nav {
margin: 0 auto;
}
}
main {
display: flex;
section {
flex: 1 1 60%;
padding: 1em;
gap: 1em;
justify-content: center;
figure {
max-width: 33%;
}
}
#section-view {
width: 40%;
flex: 1 1 40%;
figure {
position: fixed;
max-width: auto;
width: auto;
height: 100%;
}
}
}
}
li {
list-style-type: none;
}
main {
section {
display: flex;
flex-flow: row wrap;
}
}
.movie-card {
padding: 1em;
border: 1px solid rgb(232, 232, 232);
width: 50%;
flex: 1 1 calc(50% - 1em);
}
.top-card {
min-height: 20vh;
padding-bottom: 2em;
}
.right-data {
display: flex;
flex-flow: column wrap;
justify-content: space-between;
align-items: space-between;
padding-left: 2em;
}
.bottom-card {
border-top: 1px solid rgb(232, 232, 232);
padding-top: 1em;
}
.big-img {
width: 100%;
max-width: 100%;
img {
max-height: calc(100vh - 4em);
max-width: 100%;
width: auto;
height: 100%;
}
}
@media only screen and (max-width: 1200px) {
#section-view {
display: none;
}
section {
width: 100%;
flex: 1 1 100%;
}
main {
section {
display: flex;
// flex-flow: column wrap;
}
}
.movie-card {
width: 100%;
flex: 1 1 calc(100% - 1em);
}
html body main section div.movie-card div.top-card figure.film-img img {
min-width: 50%;
height: auto;
}
}