assets(css): fix "calc" operands should be correctly spaced

This commit is contained in:
Aditya Telange 2020-11-17 15:56:27 +05:30
parent fd06af55fc
commit c9a387ebdb
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
5 changed files with 11 additions and 11 deletions

View File

@ -5,9 +5,9 @@
} }
.footer { .footer {
max-width: calc(var(--main-width) + var(--gap)*2); max-width: calc(var(--main-width) + var(--gap) * 2);
margin: auto; margin: auto;
padding: calc((var(--footer-height) - (var(--gap)) - 10px)/2) var(--gap); padding: calc((var(--footer-height) - (var(--gap)) - 10px) / 2) var(--gap);
text-align: center; text-align: center;
line-height: 24px line-height: 24px
} }

View File

@ -2,7 +2,7 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
max-width: calc(var(--nav-width) + var(--gap)*2); max-width: calc(var(--nav-width) + var(--gap) * 2);
margin-inline-start: auto; margin-inline-start: auto;
margin-inline-end: auto; margin-inline-end: auto;
line-height: var(--header-height) line-height: var(--header-height)

View File

@ -1,7 +1,7 @@
.main { .main {
position: relative; position: relative;
min-height: calc(100vh - var(--header-height) - var(--footer-height)); min-height: calc(100vh - var(--header-height) - var(--footer-height));
max-width: calc(var(--main-width) + var(--gap)*2); max-width: calc(var(--main-width) + var(--gap) * 2);
margin: auto; margin: auto;
padding: var(--gap) padding: var(--gap)
} }
@ -29,7 +29,7 @@
font-size: 13px; font-size: 13px;
line-height: 36px; line-height: 36px;
background: var(--primary); background: var(--primary);
border-radius: calc(36px/2); border-radius: calc(36px / 2);
padding: 0 16px padding: 0 16px
} }

View File

@ -4,7 +4,7 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
min-height: 320px; min-height: 320px;
margin: var(--gap) 0 calc(var(--gap)*2) 0 margin: var(--gap) 0 calc(var(--gap) * 2) 0
} }
@media screen and (max-width:600px) { @media screen and (max-width:600px) {

View File

@ -140,7 +140,7 @@
.post-content .highlight, .post-content .highlight,
.post-content pre { .post-content pre {
margin: auto calc(var(--gap)*-1) 32px; margin: auto calc(var(--gap) * -1) 32px;
background: var(--hljs-bg) !important; background: var(--hljs-bg) !important;
border-radius: var(--radius) border-radius: var(--radius)
} }
@ -150,7 +150,7 @@
} }
.post-content ul pre { .post-content ul pre {
margin-inline-start: calc(var(--gap)*-2) margin-inline-start: calc(var(--gap) * -2)
} }
.post-content .highlight pre { .post-content .highlight pre {
@ -203,13 +203,13 @@
} }
.post-content blockquote { .post-content blockquote {
margin: 0 calc(var(--gap)*-1); margin: 0 calc(var(--gap) * -1);
padding: 0 32px; padding: 0 32px;
border-inline-start: 2px solid var(--primary) border-inline-start: 2px solid var(--primary)
} }
.post-content hr { .post-content hr {
margin: 30px calc(var(--gap)*-1); margin: 30px calc(var(--gap) * -1);
height: 2px; height: 2px;
background: var(--tertiary); background: var(--tertiary);
border-top: 0; border-top: 0;
@ -329,7 +329,7 @@ h6:hover .anchor {
@media screen and (max-width:600px) { @media screen and (max-width:600px) {
.post-content blockquote { .post-content blockquote {
margin: 0 calc(var(--gap)*-1); margin: 0 calc(var(--gap) * -1);
padding: 0 21px padding: 0 21px
} }
} }