From 654a188f80fc1f089aa14837084664c908fe27d2 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 15 Jul 2020 11:15:50 +0200 Subject: allow sorting notifications --- client/src/sass/include/_mixins.scss | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) (limited to 'client/src/sass/include/_mixins.scss') diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 3471d694c..2de5ce7f1 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -356,6 +356,17 @@ color: #000; } } + + &.peertube-select-button { + @include grey-button; + + select, + option { + font-weight: $font-semibold; + color: pvar(--greyForegroundColor); + border: none; + } + } } // Thanks: https://codepen.io/triss90/pen/XNEdRe/ @@ -454,6 +465,49 @@ } } +@mixin table-badge { + border-radius: 2px; + padding: 1/4em 1/2em; + text-transform: uppercase; + font-weight: $font-bold; + font-size: 12px; + letter-spacing: 1/3px; + + &.badge-banned, + &.badge-red { + background-color: #ffcdd2; + color: #c63737; + } + + &.badge-banned { + text-decoration: line-through; + } + + &.badge-yellow { + background-color: #feedaf; + color: #8a5340; + } + + &.badge-brown { + background-color: #ffd8b2; + color: #805b36; + } + + &.badge-green { + background-color: #c8e6c9; + color: #256029; + } + + &.badge-blue { + background-color: #b3e5fc; + color: #23547b; + } + + &.badge-purple { + background-color: #eccfff; + color: #694382; + } +} @mixin avatar ($size) { object-fit: cover; @@ -638,6 +692,7 @@ overflow: hidden; font-size: 0.75rem; border-radius: 0.25rem; + color: gray; .progress-bar { color: pvar(--mainBackgroundColor); @@ -648,11 +703,25 @@ text-align: center; white-space: nowrap; transition: width 0.6s ease; + isolation: isolate; + + &:after { + content: attr(valuenow-formatted); + position: absolute; + margin-left: .2rem; + mix-blend-mode: screen; + color: gray; + } &.secondary { background-color: pvar(--secondaryColor); } } + + .progress-bar + span { + position: relative; + top: -1px; + } } @mixin breadcrumb { -- cgit v1.2.3