1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-01-31 07:42:51 -05:00

Use sass instead of pure css

This commit is contained in:
Zed
2019-09-13 10:44:21 +02:00
parent 08239a3fae
commit de828bdd79
21 changed files with 1452 additions and 6 deletions

View File

@@ -0,0 +1,60 @@
@import '_variables';
@mixin panel($width, $max-width) {
max-width: $max-width;
margin: 0 auto;
float: none;
border-radius: 0;
position: relative;
width: $width;
}
@mixin play-button {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 1;
&:hover {
.overlay-circle {
border-color: $accent;
}
.overlay-triangle {
border-color: transparent transparent transparent $accent;
}
}
}
@mixin breakable {
overflow: hidden;
overflow-wrap: break-word;
}
@mixin ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@mixin center-panel($bg) {
padding: 12px;
border-radius: 4px;
display: flex;
background: $bg;
box-shadow: 0 0 15px $shadow_dark;
margin: auto;
margin-top: -50px;
}
@mixin input-colors {
&:hover {
border-color: $accent;
}
&:active {
border-color: $accent_light;
}
}