Skip to content

Commit 3a299f5

Browse files
committed
Second stage of refactor Scoped CSS
1 parent e8e154c commit 3a299f5

File tree

6 files changed

+45
-42
lines changed

6 files changed

+45
-42
lines changed
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
#footer {
2-
position: absolute;
3-
bottom: 0;
4-
width: 100%;
5-
height: 2.5rem;
6-
}
Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +0,0 @@
1-
.blog-container {
2-
background: var(--background);
3-
width: clamp(60%, 2vw, 90%);
4-
box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
5-
border-radius: 5px;
6-
padding: 20px;
7-
}
8-
9-
.blogpost-tag:before {
10-
font-family: 'icons';
11-
font-weight: 900;
12-
content: "\e936";
13-
}
14-
15-
.blogpost-content {
16-
padding-top: 20px;
17-
overflow-x: hidden;
18-
}
19-
20-
.blogpost-content img {
21-
width: 100%;
22-
height: 100%;
23-
object-fit: cover;
24-
}
25-
26-
@media only screen and (max-width: 700px) {
27-
.blog-outer-box .blog-container {
28-
width: 90%;
29-
}
30-
}
31-
32-
@media only screen and (min-width: 700px) and (max-width: 1024px) {
33-
.blog-outer-box .blog-container {
34-
width: 80%;
35-
}
36-
}

src/LinkDotNet.Blog.Web/Pages/_Layout.cshtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
<link href="css/aboutme.css" rel="stylesheet" />
3030
<link href="css/admin.css" rel="stylesheet" />
3131
<link href="css/components.css" rel="stylesheet" />
32+
<link href="css/home.css" rel="stylesheet" />
33+
<link href="css/blogpost.css" rel="stylesheet" />
3234
<link rel="preload" href="LinkDotNet.Blog.Web.styles.css" as="style">
3335
<link href="LinkDotNet.Blog.Web.styles.css" rel="stylesheet"/>
3436
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />

src/LinkDotNet.Blog.Web/wwwroot/css/basic.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,10 @@ code {
172172
right: 0.75rem;
173173
top: 0.5rem;
174174
}
175+
176+
#footer {
177+
position: absolute;
178+
bottom: 0;
179+
width: 100%;
180+
height: 2.5rem;
181+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.blog-container {
2+
background: var(--background);
3+
width: clamp(60%, 2vw, 90%);
4+
box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
5+
border-radius: 5px;
6+
padding: 20px;
7+
}
8+
9+
.blogpost-tag:before {
10+
font-family: 'icons';
11+
font-weight: 900;
12+
content: "\e936";
13+
}
14+
15+
.blogpost-content {
16+
padding-top: 20px;
17+
overflow-x: hidden;
18+
}
19+
20+
.blogpost-content img {
21+
width: 100%;
22+
height: 100%;
23+
object-fit: cover;
24+
}
25+
26+
@media only screen and (max-width: 700px) {
27+
.blog-outer-box .blog-container {
28+
width: 90%;
29+
}
30+
}
31+
32+
@media only screen and (min-width: 700px) and (max-width: 1024px) {
33+
.blog-outer-box .blog-container {
34+
width: 80%;
35+
}
36+
}

src/LinkDotNet.Blog.Web/wwwroot/css/home.css

Whitespace-only changes.

0 commit comments

Comments
 (0)