aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-10 17:05:55 +0200
committerChocobozzz <me@florianbigard.com>2022-06-10 17:05:55 +0200
commitc2faa073d113f410275021ed4de4b60fef118c13 (patch)
treeb21a4a26be6b73d7583da4b4cc3dccc7b5437532 /client/src/sass
parent3e3b360c53f43f354fe9b191b69cda444fabf712 (diff)
downloadPeerTube-c2faa073d113f410275021ed4de4b60fef118c13.tar.gz
PeerTube-c2faa073d113f410275021ed4de4b60fef118c13.tar.zst
PeerTube-c2faa073d113f410275021ed4de4b60fef118c13.zip
Replace glyphicon chevron
Diffstat (limited to 'client/src/sass')
-rw-r--r--client/src/sass/application.scss19
-rw-r--r--client/src/sass/include/_mixins.scss15
2 files changed, 34 insertions, 0 deletions
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss
index d288d2a21..2ad1af23a 100644
--- a/client/src/sass/application.scss
+++ b/client/src/sass/application.scss
@@ -308,6 +308,25 @@ table {
308 } 308 }
309} 309}
310 310
311my-global-icon[iconName=external-link] {
312 margin: 0 3px;
313 width: 13px;
314 vertical-align: text-bottom;
315 color: pvar(--inputPlaceholderColor);
316}
317
318.chevron-down {
319 @include chevron-down(0.55rem, 0.20em);
320
321 margin: 0 5px;
322}
323
324.chevron-up {
325 @include chevron-up(0.55rem, 0.20em);
326
327 margin: 0 5px;
328}
329
311/* offsetTop for scrollToAnchor */ 330/* offsetTop for scrollToAnchor */
312 331
313.anchor { 332.anchor {
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss
index e18173130..da216b00f 100644
--- a/client/src/sass/include/_mixins.scss
+++ b/client/src/sass/include/_mixins.scss
@@ -570,6 +570,7 @@
570 transform: rotate(-45deg); 570 transform: rotate(-45deg);
571 height: $size; 571 height: $size;
572 width: $size; 572 width: $size;
573 position: relative;
573} 574}
574 575
575@mixin chevron-right ($size, $border-width) { 576@mixin chevron-right ($size, $border-width) {
@@ -579,6 +580,20 @@
579 transform: rotate(45deg); 580 transform: rotate(45deg);
580} 581}
581 582
583@mixin chevron-down ($size, $border-width) {
584 @include chevron($size, $border-width);
585
586 bottom: 0.15em;
587 transform: rotate(135deg);
588}
589
590@mixin chevron-up ($size, $border-width) {
591 @include chevron($size, $border-width);
592
593 top: 0.15em;
594 transform: rotate(-45deg);
595}
596
582@mixin chevron-left ($size, $border-width) { 597@mixin chevron-left ($size, $border-width) {
583 @include chevron($size, $border-width); 598 @include chevron($size, $border-width);
584 599