-
Notifications
You must be signed in to change notification settings - Fork 0
/
demoStyling.css
110 lines (106 loc) · 2.3 KB
/
demoStyling.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
.body{
overflow-x: hidden;
}
.pad{ /* move headings a bit to the right*/
padding-left: 15px;
margin-bottom: 0px;
text-align: center;
}
h1{
font-size: 45px;
text-decoration: underline;
text-decoration-thickness: 3px;
text-underline-offset: 15px;
color: white; /* will modify*/
}
h4{
color: #c7c4cf;
margin-top: 0px;
padding-bottom: 20px;
font-size: 20px;
}
p{
padding: 0px 10px 10px 10px;
}
.img-container{
display: flex;
background-image: url('placeHolderCat.jpg');
background-size: cover;
background-position: center;
background-attachment: fixed; /* Keeps the background image fixed */
position: relative;
height: 40vh;
}
.img-container::before {
content: "";
position:absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
background-color: rgba(0,0,0,0.4);
z-index:1;
}
.head{
background-image: url('placeHolderCat.jpg');
background-size: cover;
background-position: center;
background-attachment:fixed;
}
.deviceIcon{
display: none;
}
.head .video-container{
margin: auto;
}
.videos{ /* container for all videos and captions*/
background: rgb(196,233,242);
background: linear-gradient(90deg, rgba(196,233,242,1) 0%, rgba(117,190,218,1) 46%, rgba(141,188,244,1) 100%);
display: flex;
flex-wrap: wrap;
margin: auto;
padding-top: 20px;
}
.video-container { /*container for one video*/
position: relative;
width: 100%;
max-width: 100%;
height: auto;
overflow: hidden;
}
.video-container video { /* actual one video */
width: 100%;
height: auto;
object-fit: cover;
}
.padder{
height: 10vh;
}
/* Media query for larger screens */
@media (min-width: 768px) {
.video-container {
width: 576px; /* Set a specific width for larger screens */
height: 324px; /* Set a specific height for larger screens */
padding: 20px 20px 5px 20px;
}
.video-container video {
width: 100%;
height: 100%;
object-fit: cover; /* Ensure video covers the container without distortion */
}
p{
padding-left: 20px;
}
}
@media (min-width: 1000px){
.head{
display: flex;
}
.headText{
width: 50%;
}
.deviceIcon{
display: block;
margin: auto;
}
}