mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 02:21:37 +01:00
assets(css): fix "calc" operands should be correctly spaced
This commit is contained in:
parent
fd06af55fc
commit
c9a387ebdb
@ -5,9 +5,9 @@
|
||||
}
|
||||
|
||||
.footer {
|
||||
max-width: calc(var(--main-width) + var(--gap)*2);
|
||||
max-width: calc(var(--main-width) + var(--gap) * 2);
|
||||
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;
|
||||
line-height: 24px
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
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-end: auto;
|
||||
line-height: var(--header-height)
|
||||
|
@ -1,7 +1,7 @@
|
||||
.main {
|
||||
position: relative;
|
||||
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;
|
||||
padding: var(--gap)
|
||||
}
|
||||
@ -29,7 +29,7 @@
|
||||
font-size: 13px;
|
||||
line-height: 36px;
|
||||
background: var(--primary);
|
||||
border-radius: calc(36px/2);
|
||||
border-radius: calc(36px / 2);
|
||||
padding: 0 16px
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
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) {
|
||||
|
@ -140,7 +140,7 @@
|
||||
|
||||
.post-content .highlight,
|
||||
.post-content pre {
|
||||
margin: auto calc(var(--gap)*-1) 32px;
|
||||
margin: auto calc(var(--gap) * -1) 32px;
|
||||
background: var(--hljs-bg) !important;
|
||||
border-radius: var(--radius)
|
||||
}
|
||||
@ -150,7 +150,7 @@
|
||||
}
|
||||
|
||||
.post-content ul pre {
|
||||
margin-inline-start: calc(var(--gap)*-2)
|
||||
margin-inline-start: calc(var(--gap) * -2)
|
||||
}
|
||||
|
||||
.post-content .highlight pre {
|
||||
@ -203,13 +203,13 @@
|
||||
}
|
||||
|
||||
.post-content blockquote {
|
||||
margin: 0 calc(var(--gap)*-1);
|
||||
margin: 0 calc(var(--gap) * -1);
|
||||
padding: 0 32px;
|
||||
border-inline-start: 2px solid var(--primary)
|
||||
}
|
||||
|
||||
.post-content hr {
|
||||
margin: 30px calc(var(--gap)*-1);
|
||||
margin: 30px calc(var(--gap) * -1);
|
||||
height: 2px;
|
||||
background: var(--tertiary);
|
||||
border-top: 0;
|
||||
@ -329,7 +329,7 @@ h6:hover .anchor {
|
||||
|
||||
@media screen and (max-width:600px) {
|
||||
.post-content blockquote {
|
||||
margin: 0 calc(var(--gap)*-1);
|
||||
margin: 0 calc(var(--gap) * -1);
|
||||
padding: 0 21px
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user