Skip to content

Commit 29aa5df

Browse files
committed
refact: removed razor.css files
1 parent 31aff69 commit 29aa5df

File tree

4 files changed

+90
-86
lines changed

4 files changed

+90
-86
lines changed

src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/ReadingIndicator.razor

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
@inject IJSRuntime JSRuntime
22

33
<div class="progress-container" @ref="progressContainer">
4-
<svg class="progress-circle" viewBox="0 0 36 36">
5-
<circle class="progress-bg" cx="18" cy="18" r="15.91549431" />
6-
<circle class="progress-bar" id="progressBar" cx="18" cy="18" r="15.91549431" />
7-
</svg>
4+
<svg class="progress-circle" viewBox="0 0 36 36">
5+
<circle class="progress-bg" cx="18" cy="18" r="15.91549431" />
6+
<circle class="progress-bar" id="progressBar" cx="18" cy="18" r="15.91549431" />
7+
</svg>
88
</div>
99

10+
1011
@code {
1112
[Parameter, EditorRequired]
1213
public required string ContainerCssSelector { get; set; }

src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/ReadingIndicator.razor.css

Lines changed: 0 additions & 44 deletions
This file was deleted.

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

Lines changed: 0 additions & 36 deletions
This file was deleted.

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

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ code {
223223

224224
/*#endregion */
225225

226-
/*#region ShortBlogPost */
226+
/*#region ShortBlogPost.razor */
227227
.blog-card {
228228
display: flex;
229229
flex-direction: column;
@@ -436,6 +436,89 @@ code {
436436
z-index: initial;
437437
max-width: 130px;
438438
}
439-
440439
/*#endregion */
441440

441+
/*#region ReadingIndicator.razor */
442+
.progress-container {
443+
position: fixed;
444+
bottom: 20px;
445+
right: 20px;
446+
z-index: 1000;
447+
opacity: 0;
448+
transition: opacity 1.5s;
449+
}
450+
451+
.progress-container.visible {
452+
opacity: 1;
453+
}
454+
455+
@keyframes fadeOut {
456+
to {
457+
opacity: 0;
458+
}
459+
}
460+
461+
.progress-circle {
462+
width: 50px;
463+
height: 50px;
464+
}
465+
466+
.progress-bg {
467+
fill: none;
468+
stroke: #f3f3f3;
469+
stroke-width: 4;
470+
}
471+
472+
.progress-bar {
473+
fill: none;
474+
stroke: #4caf50;
475+
stroke-width: 4;
476+
stroke-linecap: round;
477+
transform-origin: center;
478+
transform: rotate(-90deg);
479+
stroke-dasharray: 100, 100;
480+
stroke-dashoffset: 100;
481+
}
482+
483+
[data-bs-theme='light'] .progress-bg {
484+
stroke: #444444;
485+
}
486+
487+
/*region ShowBlogPostPage.razor */
488+
.blog-container {
489+
background: var(--background);
490+
width: clamp(60%, 2vw, 90%);
491+
box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
492+
border-radius: 5px;
493+
padding: 20px;
494+
}
495+
496+
.blogpost-tag:before {
497+
font-family: 'icons';
498+
font-weight: 900;
499+
content: "\e936";
500+
}
501+
502+
.blogpost-content {
503+
padding-top: 20px;
504+
overflow-x: hidden;
505+
}
506+
507+
.blogpost-content img {
508+
width: 100%;
509+
height: 100%;
510+
object-fit: cover;
511+
}
512+
513+
@media only screen and (max-width: 700px) {
514+
.blog-outer-box .blog-container {
515+
width: 90%;
516+
}
517+
}
518+
519+
@media only screen and (min-width: 700px) and (max-width: 1024px) {
520+
.blog-outer-box .blog-container {
521+
width: 80%;
522+
}
523+
}
524+
/*#endregion */

0 commit comments

Comments
 (0)