-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
154 lines (137 loc) · 3.32 KB
/
Copy pathstyle.css
File metadata and controls
154 lines (137 loc) · 3.32 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
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
*{ /*General style for pages*/
margin: 0;
padding: 0;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body { /*Body style*/
background-image: url(images/background1.png); /*Adding backround image*/
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed; /*Scrollable*/
height: 100vh;
}
a { /*Global link styling*/
color: yellow;
text-decoration: none;
}
a:hover {/*Global link styling*/
text-decoration: underline;
}
.logo{/*Style for BrainGPT logo*/
width: 240px;
cursor: pointer;
}
.content{/*Style for content class: body text*/
width: 100%;
position: absolute;
top: 20%;
color: white;
text-align: center;
}
.container{ /*Creating container class as a box to put text in*/
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.container p.context{/*Style for content class: body text in paragraphs*/
width: 50%;
color: white;
text-align: left;
}
.content h1{/*h1 styling*/
font-size: 70px;
margin-top: 50px;
}
.content h2{/*h2 styling*/
font-size: 50px;
margin-top: 20px;
}
.content p{/*paragraph styling*/
margin: 20px auto;
font-weight: 100;
line-height: 25px;
line-break: auto;
}
a.button {/*Link button styling. "a" prefix added to stop interference from link styling*/
position: relative;
display: inline-block;
text-decoration: none;
border: 2px solid lightgrey; /* Button border */
border-radius: 15px;
overflow: hidden;
margin: 50px;
}
a.button span { /*Link button span container*/
display: block;
padding: 10px 20px;
font-size: 20px;
background-color: transparent;
color: white;
position: relative;
z-index: 1;
}
a.button::after {/*.button style after transformation (hover)*/
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: lightgrey; /* Color when hovered */
transform: translateX(-100%);
transition: transform 0.5s; /* Transition time */
z-index: 0;
text-decoration: none;
}
a.button:hover::after {/*Adding hover transformation*/
transform: translateX(0%);
text-decoration: none;
}
.navbar{ /*Navbar position*/
position: absolute;
top: 0;
right: 0;
}
.navbar ul{/*General style for pages*/
list-style-type: none;
margin: 0;
padding: 0;
background-color: #333;
}
.navbar li{/*List styling*/
float: left;
}
.navbar li a{ /*Navbar Link style*/
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
z-index: 2;
}
.navbar li a:hover{/*Navbar Link hover transformation (text underline)*/
text-decoration: underline;
}
.news-item {
padding: 20px;
margin-bottom: 0px; /* Space between news items */
}
.news-date {
text-align: center;
margin-bottom: 10px; /* Space between title and text */
font-weight: lighter;
font-size: 18px;
}
.news-text {
text-align: center;
width: 100vh;
}
.large-text {
font-size: 28px;
}
.study-link-underline {
width: 50vh;
margin: 20px auto;
}