-
Notifications
You must be signed in to change notification settings - Fork 0
/
moviestyle.css
194 lines (175 loc) · 3.79 KB
/
moviestyle.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
body {
background: #000000; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #434343, #000000); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #434343, #000000); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
color: aliceblue;
font-family: 'Patrick Hand', cursive;
}
section {
position: absolute;
/* bottom: 30%; */
left: 20%;
transform: translate(-30%, 20%);
}
h1 {
color: white;
font-size: 3rem;
}
input:nth-child(1) {
width: 20rem;
padding: 0.5rem 0;
}
input:nth-child(2),
button,
.year {
padding: 0.5rem 1rem;
border-radius: 5px;
}
img {
width: 50%;
}
#dataDiv {
/* width: auto; */
margin-top: 1rem;
position: absolute;
display: grid;
gap: 0.5rem;
grid-template-columns: repeat(4,80%);
}
.child-node {
width: 80%;
margin: auto;
font-size: 1.5rem;
}
.child-node:hover {
box-shadow: 0 1px 5px 1px;
}
#error-msg {
display: none;
margin-top: 1rem;
position: relative;
top: 20rem;;
left: 18rem;
width: 20rem;
/* transform: translate(-30%, 20%); */
}
button {
/* background-color: #0F5897; */
font-size: 1rem;
cursor: pointer
}
button:hover {
animation-name: button;
animation-duration: 500ms;
animation-fill-mode: forwards;
}
@keyframes button {
100% {
background: #0F5897;
color: #fff;
}
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
section {
position: absolute;
/* bottom: 30%; */
left: 30%;
transform: translate(-30%, 20%);
}
#dataDiv {
/* width: auto; */
margin-top: 1rem;
position: absolute;
display: flex;
gap: 2px;
flex-direction: column;
/* grid-template-columns: repeat(4,80%); */
}
h1 {
color: white;
font-size: 2rem;
}
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
h1 {
color: white;
font-size: 2.5rem;
}
#dataDiv {
/* width: auto; */
margin-top: 1rem;
position: absolute;
display: grid;
grid-gap: 2px;
/* flex-direction: column; */
grid-template-columns: repeat(4,40%);
}
input{
width: 18rem;
/* height: 0.9rem; */
padding: 0.8rem 0;
}
input:nth-child(2),
button,
.year {
/* width: rem; */
padding: 0.5rem 1rem;
border-radius: 5px;
}
img {
width: 65%;
}
}
/* Medium devices (landscape tablets, 768px and up) iPad and iPad Pro
but not suitable use the below one i.e., 992px */
@media only screen and (min-width: 768px) {
}
/* Large devices (laptops/desktops/iPad Pro, 992px and up) */
@media only screen and (min-width: 992px) {
h1 {
font-size: 4rem;
}
input {
width: 100%;
height: 26px;
margin-bottom: 10px;;
}
button {
width: 30%;
height: 45px;
}
#dataDiv {
/* width: auto; */
margin-top: 1rem;
position: absolute;
display: grid;
grid-gap: 2px;
grid-template-columns: repeat(4,50%);
}
img {
width: 70%;
}
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
input {
width: 60%;
height: 26px;
margin-bottom: 10px;;
}
button {
width: 30%;
height: 45px;
}
#dataDiv {
width: 800px;
margin: auto;
margin-top: 1rem;
position: absolute;
display: grid;
grid-gap: 2px;
grid-template-columns: repeat(4,50%);
}
}