chohj06ms commited on
Commit
62161e8
1 Parent(s): 43ebfb6

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +27 -21
style.css CHANGED
@@ -1,28 +1,34 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
  }
 
1
+ body, html {
2
+ margin: 0;
3
+ padding: 0;
4
+ width: 100%;
5
+ height: 100%;
6
+ overflow: hidden;
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
  }
11
 
12
+ .slider-container {
13
+ width: 90%;
14
+ height: 80%;
15
+ overflow: hidden;
16
+ position: relative;
17
  }
18
 
19
+ .slider {
20
+ display: flex;
21
+ width: calc(300% + 60px); /* 3 slides and 20px gap between them */
22
+ transition: transform 0.5s ease-in-out;
 
23
  }
24
 
25
+ .slide {
26
+ width: calc(33.3333% - 40px); /* minus gap */
27
+ height: 100%;
28
+ margin: 0 20px; /* gap */
29
+ background-color: #ccc;
30
+ display: flex;
31
+ justify-content: center;
32
+ align-items: center;
33
+ font-size: 2em;
 
34
  }