change default data-icon vertical align

This commit is contained in:
Thibault Duplessis 2019-04-24 16:49:35 +07:00
parent cc7342e461
commit b630b28097
13 changed files with 8 additions and 23 deletions

View file

@ -18,7 +18,6 @@
transition: 2.5s;
}
i {
@extend %data-icon-middle;
font-size: 1.2em;
opacity: 0.5;
transition: 2.5s;

View file

@ -89,7 +89,7 @@
%data-icon {
font-size: 1.1em;
vertical-align: text-top;
vertical-align: middle;
font-family: 'lichess';
font-style: normal;
font-weight: normal;
@ -98,9 +98,9 @@
content: attr(data-icon);
opacity: 0.9;
}
%data-icon-middle {
%data-icon-top {
&::before {
vertical-align: middle;
vertical-align: text-top;
}
}
%fullscreen-mask {

View file

@ -11,7 +11,7 @@
}
.rp::before {
@extend %data-icon, %data-icon-middle;
@extend %data-icon;
margin-right: .2em;
content: 'N';
}

View file

@ -28,7 +28,7 @@
border: 0;
}
i {
@extend %roboto, %data-icon-middle;
@extend %roboto;
letter-spacing: -1px;
}
}

View file

@ -51,7 +51,6 @@
}
}
&.tv {
@extend %data-icon-middle;
flex: 0 0 auto;
padding: 0 5px;
}

View file

@ -20,9 +20,6 @@ $c-mselect: $c-primary;
font-size: 70%;
color: $c-mselect;
}
> * {
@extend %data-icon-middle;
}
}
&__toggle:checked ~ .mselect__label {
@include transition(opacity);
@ -39,7 +36,6 @@ $c-mselect: $c-primary;
transform-origin: top;
@include transition(transform);
> * {
@extend %data-icon-middle;
white-space: nowrap;
display: block;
padding: .3em 1em;

View file

@ -13,7 +13,6 @@
z-index: z('tour-reminder');
a {
@extend %data-icon-middle;
color: $c-primary-over;
margin: 0 .5em;
}

View file

@ -150,9 +150,6 @@
a:hover {
filter: brightness(0.9);
}
[data-icon] {
@extend %data-icon-middle;
}
}
piece {
width: 100%;

View file

@ -6,7 +6,7 @@
.entry {
@extend %roboto;
a {
@extend %base-font, %data-icon-middle;
@extend %base-font;
color: $c-font-page;
}
&:hover a {

View file

@ -6,7 +6,7 @@
border-bottom: none;
}
td {
@extend %nowrap-hidden, %data-icon-middle;
@extend %nowrap-hidden;
padding: .2em 1em;
line-height: 2em;
text-overflow: ellipsis;

View file

@ -16,9 +16,6 @@ h1 {
}
.icon {
text-align: center;
span {
@extend %data-icon-middle;
}
}
.header {
letter-spacing: 2px;
@ -59,7 +56,6 @@ h1 {
text-align: right;
}
th span {
@extend %data-icon-middle;
&::before {
font-size: 2em;
}

View file

@ -237,7 +237,6 @@ body.no-inquiry {
text-align: left;
}
.dropper > span.icon {
@extend %data-icon-middle;
line-height: 40px;
}
.dropper.warn,

View file

@ -15,7 +15,7 @@
}
.status {
@extend %box-radius, %data-icon-middle;
@extend %box-radius;
padding: 1em 1.5em;
margin-bottom: 2em;
background: $c-bg-zebra;