-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.css
More file actions
198 lines (184 loc) · 4.24 KB
/
blog.css
File metadata and controls
198 lines (184 loc) · 4.24 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
@charset "utf-8";
/* -------------------- GLOBAL -------------------- */
html, body {
margin: 0;
padding: 0;
font-family: Roboto, sans-serif;
background:
linear-gradient(to bottom, rgba(2,24,97,0.85), rgba(2,18,75,0.85), rgba(2,12,57,0.85)),
url("images/tacomanight.jpeg") no-repeat center center fixed;
background-size: cover;
color: white;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* -------------------- SITE TITLE -------------------- */
.site-title {
background: linear-gradient(to right, #000000, #020e3f, #001b76);
text-align: center;
padding: 20px;
}
.site-title h1 {
margin: 0;
font-size: 2.5em;
letter-spacing: 1px;
}
/* -------------------- NAVIGATION -------------------- */
nav {
background: linear-gradient(to right, #aaaaaa, #cccccc, #eeeeee);
text-align: center;
padding: 10px 0;
position: sticky;
top: 0;
z-index: 1000;
}
nav a {
color: #000;
margin: 0 15px;
text-decoration: none;
font-weight: bold;
}
nav a:hover {
text-decoration: underline;
color: #0056b3;
}
/* -------------------- CONTENT -------------------- */
.content {
flex: 1;
max-width: 1000px;
margin: 40px auto 0 auto;
padding: 20px;
}
.content h2 {
font-size: 2.2em;
color: #00bfff;
text-align: center;
margin-top: 0;
margin-bottom: 25px;
position: relative;
top: -20px;
}
/* -------------------- BLOG INDEX -------------------- */
.blog-link {
text-decoration: none;
color: inherit;
display: block;
margin-bottom: 20px;
}
.blog-link:hover .blog-entry {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.blog-entry {
display: flex;
flex-direction: row;
align-items: center;
gap: 20px;
background: rgba(0,0,0,0.6);
color: #fff;
padding: 20px;
border: 3px solid #00bfff;
border-radius: 12px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
flex-wrap: nowrap;
}
/* -------- THUMBNAIL BOX -------- */
.blog-thumbnail {
flex: 0 0 200px;
width: 200px;
height: 130px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
background: rgba(0,0,0,0.15);
border-radius: 10px;
box-sizing: border-box;
}
.blog-thumbnail img {
display: block;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
border: 3px solid #00bfff;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,191,255,0.25);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-thumbnail img:hover {
transform: scale(1.03);
box-shadow: 0 8px 20px rgba(0,191,255,0.45);
}
.blog-text {
flex: 1;
}
.blog-text h3 {
color: #00bfff;
margin: 0 0 6px 0;
}
.blog-text p {
color: #fff;
line-height: 1.6;
margin: 10px 0 0 0;
}
.blog-date {
font-size: 0.9em;
color: #ccc;
margin-bottom: 8px;
}
/* -------------------- POST CONTAINER -------------------- */
.post-container {
background: rgba(0,0,0,0.6);
color: #fff;
padding: 40px;
border-radius: 16px;
border: 3px solid #00bfff;
max-width: 850px;
margin: auto;
}
/* -------------------- FOOTER -------------------- */
footer {
text-align: center;
margin-top: 40px;
}
footer h3 {
background: linear-gradient(to right, #000000, #020e3f, #001b76);
color: #fff;
margin: 0;
font-size: 1.4em;
font-weight: normal;
padding: 12px 0;
}
.footer-links {
background: linear-gradient(to right, #aaaaaa, #cccccc, #eeeeee);
display: flex;
justify-content: center;
gap: 25px;
flex-wrap: wrap;
padding: 20px;
}
.footer-links a {
color: #000;
text-decoration: none;
font-size: 1.1em;
font-weight: bold;
}
.footer-links a:hover {
color: #0056b3;
text-decoration: underline;
}
.site-title {
margin-bottom: 0;
}
nav {
margin-bottom: 40px;
}
footer {
margin-top: 60px;
}
html {
overflow-y: scroll;
}