From ce4b4495ff3607045dc6d5656f72ebf5eb28cb73 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 May 2021 14:08:35 +0200 Subject: Refactor video edit css --- .../+video-edit/shared/video-edit.component.html | 2 +- .../+video-edit/shared/video-edit.component.scss | 119 ++++++++------------- 2 files changed, 46 insertions(+), 75 deletions(-) (limited to 'client/src/app/+videos/+video-edit/shared') diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.html index 094b4d3b3..16233f9e0 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html @@ -5,7 +5,7 @@ Basic info -
+
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 bc32d7964..c1c7c686d 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,9 +1,3 @@ -// 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'; @@ -57,65 +51,62 @@ my-peertube-checkbox { } } -.captions { - - .captions-header { - text-align: right; - margin-bottom: 1rem; +.captions-header { + text-align: right; + margin-bottom: 1rem; +} - .create-caption { - @include create-button; - } - } +.create-caption { + @include create-button; +} - .caption-entry { - display: flex; - height: 40px; - align-items: center; +.caption-entry { + display: flex; + height: 40px; + align-items: center; - a.caption-entry-label { - @include disable-default-a-behaviour; + a.caption-entry-label { + @include disable-default-a-behaviour; - flex-grow: 1; - color: #000; + flex-grow: 1; + color: #000; - &:hover { - opacity: 0.8; - } + &:hover { + opacity: 0.8; } + } - .caption-entry-label { - font-size: 15px; - font-weight: bold; - - margin-right: 20px; - width: 150px; - } + .caption-entry-label { + font-size: 15px; + font-weight: bold; - .caption-entry-state { - width: 200px; + margin-right: 20px; + width: 150px; + } - &.caption-entry-state-create { - color: #39CC0B; - } + .caption-entry-state { + width: 200px; - &.caption-entry-state-delete { - color: #FF0000; - } + &.caption-entry-state-create { + color: #39CC0B; } - .caption-entry-delete { - @include peertube-button; - @include grey-button; + &.caption-entry-state-delete { + color: #FF0000; } } - .no-caption { - text-align: center; - font-size: 15px; + .caption-entry-delete { + @include peertube-button; + @include grey-button; } } +.no-caption { + text-align: center; + font-size: 15px; +} + .submit-container { text-align: right; @@ -143,35 +134,15 @@ p-calendar { } } -// columns for the video -.col-video-edit { - @include make-col-ready(); +.form-columns { + display: grid; - @include media-breakpoint-up(md) { - @include make-col(7); - - + .col-video-edit { - @include make-col(5); - } - } - - @include media-breakpoint-up(xl) { - @include make-col(8); - - + .col-video-edit { - @include make-col(4); - } - } + grid-template-columns: 66% 1fr; + grid-gap: 30px; } -:host-context(.expanded) { - .col-video-edit { - @include media-breakpoint-up(md) { - @include make-col(8); - - + .col-video-edit { - @include make-col(4); - } - } +@include on-small-main-col { + .form-columns { + grid-template-columns: 1fr; } } -- cgit v1.2.3