diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-03 00:19:57 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-03 00:20:02 +0200 |
commit | b515c98c6b674ee5632f3f76ad4fe00e147d995e (patch) | |
tree | 1b4b683eda609d6f9805c0e468f91d61bc22a5e6 /client/src/sass | |
parent | 22a59f33deb4b22a03abfbd6610de35b326e4584 (diff) | |
download | PeerTube-b515c98c6b674ee5632f3f76ad4fe00e147d995e.tar.gz PeerTube-b515c98c6b674ee5632f3f76ad4fe00e147d995e.tar.zst PeerTube-b515c98c6b674ee5632f3f76ad4fe00e147d995e.zip |
Refactor torrent-or-magnet divider in video import
Diffstat (limited to 'client/src/sass')
-rw-r--r-- | client/src/sass/include/_mixins.scss | 23 |
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 | } | ||