Update all CSS to use logical properties

- Vendor CSS's are excluded for now
- Removed <IE7 asterisk prefix items
This commit is contained in:
iBug
2024-06-25 23:36:16 +08:00
parent 9ffaf41d20
commit 922440cd55
15 changed files with 159 additions and 229 deletions

View File

@@ -83,20 +83,11 @@ body:hover .visually-hidden button {
Type
========================================================================== */
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.text-justify {
text-align: justify;
$text-alignments: left, right, start, end, center, justify;
@each $alignment in $text-alignments {
.text-#{$alignment} {
text-align: $alignment;
}
}
.text-nowrap {
@@ -108,7 +99,7 @@ body:hover .visually-hidden button {
========================================================================== */
.task-list {
padding:0;
padding: 0;
li {
list-style-type: none;
@@ -135,8 +126,7 @@ body:hover .visually-hidden button {
}
.wrapper {
margin-left: auto;
margin-right: auto;
margin-inline: auto;
width: 100%;
}
@@ -148,8 +138,7 @@ body:hover .visually-hidden button {
.align-left {
display: block;
margin-left: auto;
margin-right: auto;
margin-inline: auto;
@include breakpoint($small) {
float: left;
@@ -161,8 +150,7 @@ body:hover .visually-hidden button {
.align-right {
display: block;
margin-left: auto;
margin-right: auto;
margin-inline: auto;
@include breakpoint($small) {
float: right;
@@ -174,8 +162,7 @@ body:hover .visually-hidden button {
.align-center {
display: block;
margin-left: auto;
margin-right: auto;
margin-inline: auto;
}
/* file page content container */
@@ -533,7 +520,7 @@ pre {
display: block;
position: absolute;
top: 0.6em;
right: 0.5em;
inset-inline-end: 0.5em;
width: 1.8em;
height: 1.5em;
z-index: 1;
@@ -548,17 +535,14 @@ pre {
&::before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
inset: 0;
z-index: 2;
}
i {
position: absolute;
top: 0.25em;
right: 0.25em;
inset-inline-end: 0.25em;
&.copied {
opacity: 0;
}