-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput.css
More file actions
65 lines (59 loc) · 985 Bytes
/
input.css
File metadata and controls
65 lines (59 loc) · 985 Bytes
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
@tailwind base;
@tailwind components;
@tailwind utilities;
/*
@layer base{
h1{
@apply text-3xl text-center
}
p{
@apply text-2xl text-center
}
}
@layer components{
.btn{
@apply bg-sky-500 hover:bg-sky-700
}
}
@layer utilities{
.img{
@apply absolute block w-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2
}
.side{
@apply ex-1 ml-3 whitespace-nowrap
}
} */
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
.container {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.slider {
width: 80vw;
height: 80vh;
display: flex;
}
.slide {
position: relative;
flex: 1 0 auto;
overflow: hidden;
transition: all 0.5s ease-in-out;
}
.slide:hover {
flex: 5;
}
.slide img {
position: absolute;
max-height: 100%;
min-width: 100%;
left: 50%;
transform: translateX(-50%);
}