Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0221170

Browse files
fixed blogcard css (#25)
consolidated blogcard, blog-content, infopage-content styling & used the descendent operator
1 parent 502948f commit 0221170

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

content/ctf-league.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: CTF League
33
layout: 'infopage'
44
---
55

6-
![CTF League logo, starring a beaver with a lock](https://www.osusec.org/wp-content/uploads/2022/06/ctf_small_years1-300x300.png)
6+
![CTF League logo, starring a beaver with a lock](/ctf-league_logo.png)
77

88
## Overview
99

static/caseyhates.css

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -189,35 +189,37 @@ body {
189189
}
190190
}
191191

192-
.infopage-content > p > a, .infopage-content>ul>li>a, .infopage-content>ol>li>a {
192+
.infopage-content a, .blogcard-content a {
193193
text-decoration: none;
194194
color: var(--primary-color);
195195
}
196196

197-
.infopage-content > p > a:hover {
197+
.infopage-content a:hover, .blogcard-content a:hover, .blogcard-title:hover {
198+
text-decoration: none;
198199
color: var(--secondary-color);
199200
}
200201

201-
.infopage-content>h1, .infopage-content>h2, .infopage-content>h3, .infopage-content>h4, .infopage-content>h5 {
202+
.infopage-content h1, .infopage-content h2, .infopage-content h3, .infopage-content h4, .infopage-content h5
203+
.blogcard-content h1, .blogcard-content h2, .blogcard-content h3, .blogcard-content h4, .blogcard-content h5 {
202204
color: var(--subheading-color);
203205
}
204206

205-
.infopage-content>p {
207+
.infopage-content p, .blogcard-content p {
206208
color: var(--text-color);
207209
}
208210

209-
.infopage-content>p>img, .infopage-content>iframe {
211+
.infopage-content img, .infopage-content iframe, .blogcard-content img {
210212
max-width: 100%;
211213
margin: auto;
212214
display: block;
213215
}
214216

215-
.infopage-content>embed {
217+
.infopage-content embed {
216218
width: 100%;
217219
height: 100vh;
218220
}
219221

220-
.infopage-content>ul, .infopage-content>ol {
222+
.infopage-content ul, .infopage-content ol {
221223
color: var(--text-color);
222224
}
223225

@@ -232,15 +234,6 @@ body {
232234
width: 100%;
233235
}
234236

235-
.blogcard-content>p>a {
236-
text-decoration: none;
237-
color: var(--primary-color);
238-
}
239-
240-
.blogcard-content>p>a:hover {
241-
text-decoration: none;
242-
color: var(--secondary-color);
243-
}
244237

245238
.blogcard-title {
246239
text-decoration: none;
@@ -249,12 +242,8 @@ body {
249242
font-weight: 600;
250243
}
251244

252-
.blogcard-title:hover {
253-
text-decoration: none;
254-
color: var(--secondary-color);
255-
}
256245

257-
.blogcard-content>time, .blog-subtext {
246+
.blog-subtext {
258247
color: var(--mutedtext-color);
259248
font-size: 0.9rem;
260249
}

static/ctf-league_logo.png

-8.73 KB
Loading

0 commit comments

Comments
 (0)