Skip to content

Commit aed8c01

Browse files
committed
More css tweaks
1 parent d514961 commit aed8c01

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/LinkDotNet.Blog.Web/Features/Components/ShortBlogPost.razor.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
z-index: 0;
1010
transform: scale(1.0);
1111
transition: transform 0.35s;
12+
content-visibility: auto;
13+
contain-intrinsic-size: 300px;
1214
}
1315

1416
.blog-card:hover {
@@ -72,7 +74,7 @@
7274

7375
.blog-card .description {
7476
padding: 1rem;
75-
background: var(--background-gradient-start);
77+
background: var(--background);
7678
position: relative;
7779
z-index: 1;
7880
}
@@ -147,7 +149,7 @@
147149
.blog-card .description:before {
148150
transform: skewX(-3deg);
149151
content: "";
150-
background: var(--background-gradient-start);
152+
background: var(--background);
151153
width: 30px;
152154
position: absolute;
153155
left: -10px;

src/LinkDotNet.Blog.Web/Features/ShowBlogPost/ShowBlogPostPage.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.blog-container {
2-
background: var(--background-gradient-start);
2+
background: var(--background);
33
width: clamp(60%, 2vw, 90%);
44
box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
55
border-radius: 5px;

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
:root {
22
/* Color definitions */
3-
--jaguar: #111013;
4-
--shark: #28282f;
3+
--jaguar: rgb(17, 16, 19);
4+
--shark: rgb(40, 40, 47);
55
--trout: rgba(78, 78, 93, 0.5);
66

77
/* Fonts */
88
--default-font: 'Calibri';
99
--code-font: 'Lucida Console', 'Courier New';
1010

11+
/* Usages */
12+
--background: var(--jaguar);
13+
1114
--background-gradient-start: var(--jaguar);
1215
--background-gradient-end: var(--shark);
1316
}
@@ -22,7 +25,7 @@ html:focus-within {
2225

2326
body {
2427
margin: 0;
25-
background-image: linear-gradient(to bottom, var(--background-gradient-start) 40%, var(--background-gradient-end));
28+
background-image: linear-gradient(to bottom, var(--background-gradient-start) 20%, var(--background-gradient-end));
2629
background-repeat: no-repeat;
2730
background-attachment: fixed;
2831
font-family: var(--default-font), sans-serif !important;

0 commit comments

Comments
 (0)