X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-edit%2Fshared%2Fvideo-edit.component.scss;h=69b9072883ac33625d35b43c384ff5f9ae5db815;hb=67ed6552b831df66713bac9e672738796128d33f;hp=f4466bdde2fe9a70610ba62ecfb363c8ac8d05e9;hpb=63c4db6d71b98523753c51747e308682d9a2e8a0;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.scss b/client/src/app/videos/+video-edit/shared/video-edit.component.scss index f4466bdde..69b907288 100644 --- a/client/src/app/videos/+video-edit/shared/video-edit.component.scss +++ b/client/src/app/videos/+video-edit/shared/video-edit.component.scss @@ -1,8 +1,42 @@ -@import '_variables'; -@import '_mixins'; +// Bootstrap grid utilities require functions, variables and mixins +@import 'node_modules/bootstrap/scss/functions'; +@import 'node_modules/bootstrap/scss/variables'; +@import 'node_modules/bootstrap/scss/mixins'; +@import 'node_modules/bootstrap/scss/grid'; + +@import 'variables'; +@import 'mixins'; + +label { + font-weight: $font-regular; + font-size: 100%; +} + +.peertube-select-container { + @include peertube-select-container(auto); +} + +.title-page a { + color: pvar(--mainForegroundColor); + + &:hover { + text-decoration: none; + opacity: .8; + } +} + +my-peertube-checkbox { + display: block; + margin-bottom: 1rem; +} + +.nav-tabs { + margin-bottom: 15px; +} .video-edit { height: 100%; + min-height: 300px; .form-group { margin-bottom: 25px; @@ -11,52 +45,91 @@ input { @include peertube-input-text(100%); display: block; + } - &[type=checkbox] { - outline: 0; - } + .label-tags + span { + font-size: 15px; } - select { - @include peertube-select(100%); + .advanced-settings .form-group { + margin-bottom: 20px; } +} + +.captions { + + .captions-header { + text-align: right; + margin-bottom: 1rem; - input, select { - font-size: 15px + .create-caption { + @include create-button; + } } - .form-group-checkbox { + .caption-entry { display: flex; + height: 40px; align-items: center; - label { - font-weight: $font-regular; - margin: 0; + a.caption-entry-label { + @include disable-default-a-behaviour; + + flex-grow: 1; + color: #000; + + &:hover { + opacity: 0.8; + } } - input { - width: 10px; - margin-right: 10px; + .caption-entry-label { + font-size: 15px; + font-weight: bold; + + margin-right: 20px; + width: 150px; + } + + .caption-entry-state { + width: 200px; + + &.caption-entry-state-create { + color: #39CC0B; + } + + &.caption-entry-state-delete { + color: #FF0000; + } } + + .caption-entry-delete { + @include peertube-button; + @include grey-button; + } + } + + .no-caption { + text-align: center; + font-size: 15px; } } .submit-container { text-align: right; - position: relative; - bottom: $button-height; .message-submit { display: inline-block; margin-right: 25px; - color: #585858; + color: pvar(--greyForegroundColor); font-size: 15px; } .submit-button { @include peertube-button; @include orange-button; + @include button-with-icon(20px, 1px); display: inline-block; @@ -66,68 +139,59 @@ border: none; padding: 0; outline: 0; + color: inherit; + font-weight: $font-semibold; } + } +} - .icon.icon-validate { - @include icon(20px); +p-calendar { + display: block; - cursor: inherit; - position: relative; - top: -1px; - margin-right: 4px; - background-image: url('../../../../assets/images/global/validate.svg'); + ::ng-deep { + input, + .ui-calendar { + width: 100%; + } + + input { + @include peertube-input-text(100%); + color: #000; } } } -/deep/ { - .ng2-tag-input { - border: none !important; - } +@include ng2-tags; - .ng2-tags-container { - display: flex; - align-items: center; - border: 1px solid #C6C6C6; - border-radius: 3px; - padding: 5px !important; - } +// columns for the video +.col-video-edit { + @include make-col-ready(); - tag { - background-color: #E5E5E5 !important; - border-radius: 3px !important; - font-size: 15px !important; - color: #000 !important; - height: 30px !important; - line-height: 30px !important; - margin: 0 5px 0 0 !important; - cursor: default !important; - padding: 0 8px 0 10px !important; - - div { - height: 100% !important; + @include media-breakpoint-up(md) { + @include make-col(7); + + & + .col-video-edit { + @include make-col(5); } } - delete-icon { - cursor: pointer !important; - height: auto !important; - vertical-align: middle !important; - padding-left: 6px !important; - - svg { - height: auto !important; - vertical-align: middle !important; - fill: #585858 !important; - } + @include media-breakpoint-up(xl) { + @include make-col(8); - &:hover { - transform: none !important; + & + .col-video-edit { + @include make-col(4); } } } -.little-information { - font-size: 0.8em; - font-style: italic; +:host-context(.expanded) { + .col-video-edit { + @include media-breakpoint-up(md) { + @include make-col(8); + + & + .col-video-edit { + @include make-col(4); + } + } + } }