Fix invalid kg-card width in the pinned container

develop
Nikita Tokarchuk 3 years ago
parent 89fbc57aad
commit 2bffc08630
Signed by: mainnika
GPG Key ID: A595FB7E3E56911C
  1. 7
      web/style/blog.scss
  2. 6
      web/style/index.scss
  3. 10
      web/style/kg.scss
  4. 13
      web/style/pinned.scss

@ -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,

@ -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,

@ -5,10 +5,19 @@
z-index: 1; z-index: 1;
} }
.pinned-container .blog-post-head {
display: none;
}
.pinned-container .blog-post-content > * { .pinned-container .blog-post-content > * {
width: 80vw; width: 80vw;
} }
.pinned-container .blog-post-content > .kg-card {
width: auto;
}
.pinned-container .blog-post-head { @media all and (max-width: 512px) {
display: none; .pinned-container .blog-post-content > * {
width: 90vw;
}
} }

Loading…
Cancel
Save