aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/include
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-04-03 00:19:57 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-04-03 00:20:02 +0200
commitb515c98c6b674ee5632f3f76ad4fe00e147d995e (patch)
tree1b4b683eda609d6f9805c0e468f91d61bc22a5e6 /client/src/sass/include
parent22a59f33deb4b22a03abfbd6610de35b326e4584 (diff)
downloadPeerTube-b515c98c6b674ee5632f3f76ad4fe00e147d995e.tar.gz
PeerTube-b515c98c6b674ee5632f3f76ad4fe00e147d995e.tar.zst
PeerTube-b515c98c6b674ee5632f3f76ad4fe00e147d995e.zip
Refactor torrent-or-magnet divider in video import
Diffstat (limited to 'client/src/sass/include')
-rw-r--r--client/src/sass/include/_mixins.scss23
1 files changed, 23 insertions, 0 deletions
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss
index 76e3f3f97..d414704e9 100644
--- a/client/src/sass/include/_mixins.scss
+++ b/client/src/sass/include/_mixins.scss
@@ -774,3 +774,26 @@
774 } 774 }
775 } 775 }
776} 776}
777
778@mixin divider($color: var(--submenuColor), $background: var(--mainBackgroundColor)) {
779 width: 95%;
780 border-top: .05rem solid $color;
781 height: .05rem;
782 text-align: center;
783 display: block;
784 position: relative;
785
786 &[data-content] {
787 margin: .8rem 0;
788
789 &::after {
790 background: $background;
791 color: $color;
792 content: attr(data-content);
793 display: inline-block;
794 font-size: .7rem;
795 padding: 0 .4rem;
796 transform: translateY(-.65rem);
797 }
798 }
799}