mirror of
https://github.com/mainnika/nikita-tokarch-uk.git
synced 2026-05-24 16:53:35 +00:00
Fix invalid kg-card width in the pinned container
This commit is contained in:
@@ -52,15 +52,8 @@
|
|||||||
width: 50vw;
|
width: 50vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-post-content > .kg-card {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (max-width: 512px) {
|
@media all and (max-width: 512px) {
|
||||||
.blog-post-content > * {
|
.blog-post-content > * {
|
||||||
width: 90vw;
|
width: 90vw;
|
||||||
}
|
}
|
||||||
.pinned-container .blog-post-content > * {
|
|
||||||
width: 90vw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
@use "./const.scss" as *;
|
@use "./const.scss" as *;
|
||||||
|
|
||||||
@use "./blog.scss";
|
@use "./blog.scss";
|
||||||
@use "./font.scss";
|
|
||||||
@use "./kg.scss";
|
|
||||||
@use "./menu.scss";
|
|
||||||
@use "./pinned.scss";
|
@use "./pinned.scss";
|
||||||
|
@use "./menu.scss";
|
||||||
@use "./scroll.scss";
|
@use "./scroll.scss";
|
||||||
|
@use "./kg.scss";
|
||||||
|
@use "./font.scss";
|
||||||
@use "./external.scss";
|
@use "./external.scss";
|
||||||
|
|
||||||
body,
|
body,
|
||||||
|
|||||||
+6
-4
@@ -1,6 +1,7 @@
|
|||||||
@use "./const.scss" as *;
|
@use "./const.scss" as *;
|
||||||
|
|
||||||
.kg-card {
|
.kg-card {
|
||||||
|
width: auto;
|
||||||
max-width: 70vw;
|
max-width: 70vw;
|
||||||
padding: 0.2em;
|
padding: 0.2em;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
@@ -10,8 +11,11 @@
|
|||||||
background-color: $main-color;
|
background-color: $main-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kg-card img {
|
.kg-card > * {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kg-card img {
|
||||||
border-radius: 0.2em;
|
border-radius: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -24,11 +28,9 @@
|
|||||||
|
|
||||||
.kg-code-card {
|
.kg-code-card {
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
}
|
|
||||||
|
|
||||||
.kg-code-card pre {
|
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
li.L0,
|
li.L0,
|
||||||
li.L1,
|
li.L1,
|
||||||
|
|||||||
+13
-4
@@ -5,10 +5,19 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pinned-container .blog-post-content > * {
|
|
||||||
width: 80vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pinned-container .blog-post-head {
|
.pinned-container .blog-post-head {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pinned-container .blog-post-content > * {
|
||||||
|
width: 80vw;
|
||||||
|
}
|
||||||
|
.pinned-container .blog-post-content > .kg-card {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (max-width: 512px) {
|
||||||
|
.pinned-container .blog-post-content > * {
|
||||||
|
width: 90vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user