Fix double borders not aligning
This commit is contained in:
parent
3da2287bbc
commit
f7a48d6d8d
@ -45,7 +45,7 @@
|
|||||||
<p>Stuff under the hr!</p>
|
<p>Stuff under the hr!</p>
|
||||||
</li>
|
</li>
|
||||||
</div
|
</div
|
||||||
><div class="box white width-50">
|
><div class="box double white width-50">
|
||||||
<p>Welcome to a thing! This is a list, hello!</p>
|
<p>Welcome to a thing! This is a list, hello!</p>
|
||||||
<p>The list:</p>
|
<p>The list:</p>
|
||||||
<li>
|
<li>
|
||||||
|
10
style.css
10
style.css
@ -164,13 +164,13 @@ nav > li {
|
|||||||
vertical-align: top; }
|
vertical-align: top; }
|
||||||
.box.double {
|
.box.double {
|
||||||
border-style: double;
|
border-style: double;
|
||||||
border-width: 6px;
|
border-width: 4px;
|
||||||
margin: calc(0.5ch - 2.5px);
|
margin: calc(0.5ch);
|
||||||
padding: calc(0.5ch - 2.5px);
|
padding: calc(0.5ch - (4px));
|
||||||
margin-top: 10.5px;
|
margin-top: 10.5px;
|
||||||
margin-bottom: 10.5px;
|
margin-bottom: 10.5px;
|
||||||
padding-top: 4.5px;
|
padding-top: 6.5px;
|
||||||
padding-bottom: 4.5px; }
|
padding-bottom: 6.5px; }
|
||||||
.box.black {
|
.box.black {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
color: #c9c9c9;
|
color: #c9c9c9;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"mappings": ";AAaA,KAAM;EACJ,WAAW,EAAE,kDAAkD;EAE/D,gBAAgB,EAdF,KAAY;EAe1B,KAAK,EAdS,OAAkB;EAehC,WAAW,EAAE,GAAG;EAEhB,SAAS,EAdC,IAAI;EAed,WAAW,EAbC,IAA2B;;AAkBzC,CAAE;EACA,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;;AAGZ,CAAE;EACA,KAAK,EAAE,IAAI;;AAGb,CAAE;EACA,WAAW,EAAE,IAAI;;AAGnB,EAA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AAE,UAAU,EAAE,KAAiB;;AAI9C,QAAqB;EAAE,KAAK,EAAE,GAAY;;AAA1C,SAAqB;EAAE,KAAK,EAAE,IAAY;;AAA1C,SAAqB;EAAE,KAAK,EAAE,IAAY;;AAA1C,SAAqB;EAAE,KAAK,EAAE,IAAY;;AAA1C,SAAqB;EAAE,KAAK,EAAE,IAAY;;AAG1C,SAAsB;EAAE,KAAK,EAAE,IAAmB;;AAAlD,UAAsB;EAAE,KAAK,EAAE,IAAmB;;AAAlD,UAAsB;EAAE,KAAK,EAAE,KAAmB;;AAAlD,UAAsB;EAAE,KAAK,EAAE,KAAmB;;AAAlD,UAAsB;EAAE,KAAK,EAAE,KAAmB;;AAIlD,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,IAAiB;EAAE,cAAc,EAAE,IAAiB;;AAArG,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,IAAiB;EAAE,cAAc,EAAE,IAAiB;;AAArG,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,IAAiB;EAAE,cAAc,EAAE,IAAiB;;AAArG,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,IAAiB;EAAE,cAAc,EAAE,IAAiB;;AAArG,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,KAAiB;EAAE,cAAc,EAAE,KAAiB",
|
||||||
"sources": ["style.scss"],
|
"sources": ["style.scss"],
|
||||||
"names": [],
|
"names": [],
|
||||||
"file": "style.css"
|
"file": "style.css"
|
||||||
|
@ -9,7 +9,7 @@ $line-overflow: 5px;
|
|||||||
$line-height: $em-height + $line-overflow;
|
$line-height: $em-height + $line-overflow;
|
||||||
|
|
||||||
$box-border: 2px;
|
$box-border: 2px;
|
||||||
$box-double-border: 6px;
|
$box-double-border: 4px;
|
||||||
|
|
||||||
:root { // Styles applying to everyting
|
:root { // Styles applying to everyting
|
||||||
font-family: "Iosevka Slab", "Iosevka", "Consolas", "monospace";
|
font-family: "Iosevka Slab", "Iosevka", "Consolas", "monospace";
|
||||||
@ -229,7 +229,7 @@ nav {
|
|||||||
.box {
|
.box {
|
||||||
border: $box-border solid $default-white;
|
border: $box-border solid $default-white;
|
||||||
margin: 0.5ch;
|
margin: 0.5ch;
|
||||||
padding: calc(0.5ch - 2px);
|
padding: calc(0.5ch - #{$box-border});
|
||||||
width: auto;
|
width: auto;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: $line-height / 2;
|
margin-top: $line-height / 2;
|
||||||
@ -241,8 +241,8 @@ nav {
|
|||||||
&.double {
|
&.double {
|
||||||
border-style: double;
|
border-style: double;
|
||||||
border-width: $box-double-border;
|
border-width: $box-double-border;
|
||||||
margin: calc(0.5ch - 2.5px);
|
margin: calc(0.5ch);
|
||||||
padding: calc(0.5ch - 2.5px);
|
padding: calc(0.5ch - (#{$box-double-border}));
|
||||||
margin-top: $line-height / 2 ;
|
margin-top: $line-height / 2 ;
|
||||||
margin-bottom: $line-height / 2 ;
|
margin-bottom: $line-height / 2 ;
|
||||||
padding-top: $line-height / 2 - $box-double-border;
|
padding-top: $line-height / 2 - $box-double-border;
|
||||||
|
Loading…
Reference in New Issue
Block a user