X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Finclude%2F_mixins.scss;h=252cf2173b30301b3a462af0b09ddbf511a50e4b;hb=5f0805d39b94eb2de1b73e0f43ac8685ae900994;hp=a07bd5d28b995b860c2d179f8819de734678c5e6;hpb=a0d69908239718ca3bd03097fbd9eb7e2a13ff75;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index a07bd5d28..252cf2173 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -22,6 +22,14 @@ } } +@mixin peertube-textarea ($width, $height) { + @include peertube-input-text($width); + + height: $height; + padding: 5px 15px; + font-size: 15px; +} + @mixin orange-button { &, &:active, &:focus { color: #fff; @@ -101,6 +109,7 @@ overflow: hidden; background: #fff; position: relative; + font-size: 15px; &:after { top: 50%; @@ -149,6 +158,44 @@ } } +// Thanks: https://codepen.io/triss90/pen/XNEdRe/ +@mixin peertube-radio-container { + input[type="radio"] { + display: none; + + & + label { + font-weight: $font-regular; + cursor: pointer; + + &:before { + position: relative; + top: -2px; + content: ''; + background: #fff; + border-radius: 100%; + border: 1px solid #000; + display: inline-block; + width: 15px; + height: 15px; + vertical-align: middle; + cursor: pointer; + text-align: center; + margin-right: 10px; + } + } + + &:checked + label:before { + background-color: #000; + box-shadow: inset 0 0 0 4px #fff; + } + + &:focus + label:before { + outline: none; + border-color: #000; + } + } +} + @mixin peertube-checkbox ($border-width) { display: none;