-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhomesample.css
More file actions
121 lines (118 loc) · 2.66 KB
/
homesample.css
File metadata and controls
121 lines (118 loc) · 2.66 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
*{
font-family:Arial, Helvetica, sans-serif;
}
body{
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background-color: white;
font-weight: 500;
}
.slides {
display: none;
}
#image1,#image2,#image3{
width: 100%;
height: 700px;
margin-top: 0;
}
.image1text,.image2text,.image3text{
position: absolute;
background-color: rgba(84, 43, 3, 0.7);
border-radius: 5%;
padding: 40px;
bottom: 40%;
left:20%;
text-align: left;
transform: translate(-50%,50%);
font-weight: 500;
font-size: 1.2em;
}
.image1text a,.image2text a, .image3text a{
position: relative;
padding: 15px 40px;
background-color: white;
color: #555;
text-decoration: none;
text-transform: uppercase;
font-weight: 500;
font-size: 1.2em;
transition: 0.5s;
clip-path: polygon(90% 0, 100% 50%, 90% 100%, 0% 100%, 0 56%, 0% 0%);
}
.image1text a:hover{
background: #FFE4B5;
color: white;
clip-path: polygon(90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%, 0% 0%);
}
.image2text a:hover{
background: #FFE4B5;
color: white;
clip-path: polygon(90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%, 0% 0%);
}
.image3text a:hover{
background: #FFE4B5;
color: white;
clip-path: polygon(90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%, 0% 0%);
}
/* Slideshow container */
.slideshow-container{
max-width: 100%;
position: relative;
margin: auto;
}
/* Next & previous buttons */
.prev, .next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -22px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
background-color: transparent;
}
/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.image1text{
color: black;
text-align: left;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
background-color: rgba(0,0,0,0.4);
}
/* The dots/bullets/indicators */
.dot {
cursor: pointer;
height: 10px;
width: 10px;
margin: 0px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
transition: background-color 0.6s ease;
}
.active, .dot:hover {
background-color: #717171;
}
/* Fading animation */
.fade {
animation-name: fade;
animation-duration: 0.5s;
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
.prev, .next,{font-size: 11px}
}