PeerTube/client/src/sass/application.scss

303 lines
5.8 KiB
SCSS
Raw Normal View History

$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
2017-12-11 17:36:46 +01:00
@import '_bootstrap-variables';
2018-09-05 15:32:15 +02:00
@import '_variables';
@import '_mixins';
2018-06-06 19:21:02 +02:00
@import '_fonts';
2017-12-11 17:36:46 +01:00
@import '~video.js/dist/video-js.css';
2017-12-12 14:57:46 +01:00
2018-06-11 15:25:46 +02:00
$assets-path: '../assets/';
2018-09-17 15:00:46 +02:00
@import './player/index';
2017-12-12 14:57:46 +01:00
@import './loading-bar';
2016-11-08 20:49:43 +01:00
2019-06-12 12:40:24 +02:00
@import './bootstrap';
@import './primeng-custom';
2017-04-21 11:06:33 +02:00
[hidden] {
display: none !important;
}
2017-12-01 09:20:19 +01:00
body {
2018-09-05 15:32:15 +02:00
/*** theme ***/
// now beware node-sass requires interpolation
// for css custom properties #{$var}
--mainColor: #{$orange-color};
--mainColorLighter: #{$orange-color-lighter};
--mainHoverColor: #{$orange-hover-color};
2018-09-05 15:32:15 +02:00
--mainBackgroundColor: #{$bg-color};
--mainForegroundColor: #{$fg-color};
--secondaryColor: #{$cyan-color};
2019-12-03 20:10:27 +01:00
--menuBackgroundColor: #{$menu-background};
--menuForegroundColor: #{$menu-color};
2018-09-05 15:32:15 +02:00
--submenuColor: #{$sub-menu-color};
2019-12-03 20:10:27 +01:00
2020-01-29 16:00:28 +01:00
--inputBackgroundColor: #{$input-background-color};
2018-09-05 15:32:15 +02:00
--inputPlaceholderColor: #{$input-placeholder-color};
--actionButtonColor: #{$grey-foreground-color};
--supportButtonBackgroundColor: #{transparent};
--supportButtonColor: #{var(--actionButtonColor)};
--supportButtonHeartColor: #{$support-button-heart};
2019-12-03 20:10:27 +01:00
2018-02-22 18:32:31 +01:00
font-family: $main-fonts;
2017-12-01 09:20:19 +01:00
font-weight: $font-regular;
color: var(--mainForegroundColor);
2019-11-29 14:23:28 +01:00
background-color: var(--mainBackgroundColor);
2018-08-09 09:22:10 +02:00
font-size: 14px;
2017-12-01 09:20:19 +01:00
}
::selection {
color: var(--mainBackgroundColor);
background-color: var(--mainHoverColor);
}
#incompatible-browser {
display: none;
text-align: center;
position: absolute;
width: 100%;
top: 45%;
}
2018-02-20 16:13:05 +01:00
strong {
font-weight: $font-semibold;
}
2017-04-21 11:06:33 +02:00
input.readonly {
/* Force blank on readonly inputs */
2020-01-29 16:00:28 +01:00
background-color: var(--inputBackgroundColor) !important;
2015-12-05 12:14:55 +01:00
}
input, textarea {
outline: none;
color: var(--mainForegroundColor);
}
2018-09-24 17:48:34 +02:00
.btn-outline-secondary {
border-color: $input-border-color;
}
2017-12-05 16:48:26 +01:00
label {
font-weight: $font-bold;
font-size: 15px;
2017-04-21 16:40:45 +02:00
}
2017-12-06 09:19:25 +01:00
.form-error {
display: block;
2018-08-28 17:39:29 +02:00
color: $red;
2017-12-06 09:19:25 +01:00
margin-top: 5px;
}
.input-error {
2018-08-28 17:39:29 +02:00
border-color: $red !important;
2017-12-06 09:19:25 +01:00
}
.fullWidth {
width: 100%;
margin-left: auto;
margin-right: auto;
max-width: initial;
}
2017-04-21 11:06:33 +02:00
.glyphicon-black {
color: black;
}
.main-col {
2017-12-01 17:38:26 +01:00
margin-left: $menu-width;
2018-08-09 09:22:10 +02:00
width: auto;
2017-12-01 14:46:22 +01:00
2017-12-01 17:38:26 +01:00
.margin-content {
margin-left: $not-expanded-horizontal-margins;
margin-right: $not-expanded-horizontal-margins;
2018-08-09 09:22:10 +02:00
flex-grow: 1;
2017-12-01 17:38:26 +01:00
}
.sub-menu {
background-color: var(--submenuColor);
2017-12-01 17:38:26 +01:00
width: 100%;
height: 81px;
2019-03-14 14:05:36 +01:00
margin-bottom: $sub-menu-margin-bottom;
2017-12-01 17:38:26 +01:00
display: flex;
align-items: center;
padding-left: $not-expanded-horizontal-margins;
2018-08-21 16:18:59 +02:00
padding-right: $not-expanded-horizontal-margins;
2017-12-01 17:38:26 +01:00
}
// Override some properties if the main content is expanded (no menu on the left)
&.expanded {
margin-left: 0;
.margin-content {
margin-left: $expanded-horizontal-margins;
margin-right: $expanded-horizontal-margins;
}
.sub-menu {
padding-left: $expanded-horizontal-margins;
2018-08-21 16:18:59 +02:00
padding-right: $expanded-horizontal-margins;
2017-12-01 17:38:26 +01:00
}
}
2017-04-21 11:06:33 +02:00
}
2017-12-07 10:33:16 +01:00
.title-page {
color: var(--mainForegroundColor);
2017-12-07 10:33:16 +01:00
font-size: 16px;
display: inline-block;
margin-right: 55px;
font-weight: $font-semibold;
@include disable-default-a-behaviour;
&.active, &.title-page-single {
margin-top: 30px;
margin-bottom: 25px;
}
2017-12-08 08:39:15 +01:00
&.active {
font-weight: $font-bold;
border-bottom: 2px solid var(--mainColor);
}
&.title-page-single {
font-size: 125%;
}
2017-12-08 08:39:15 +01:00
&:hover, &:active, &:focus {
color: var(--mainForegroundColor);
2017-12-08 10:41:49 +01:00
}
2018-05-09 09:23:27 +02:00
@media screen and (max-width: $mobile-view) {
2019-04-11 11:18:19 +02:00
margin-right: 15px;
2018-05-09 09:23:27 +02:00
}
2017-12-08 08:39:15 +01:00
}
2017-12-08 10:41:49 +01:00
.title-page-about,
.title-page-settings {
font-size: 115%;
font-weight: $font-regular;
&.active {
font-weight: $font-semibold;
}
}
2017-12-08 14:34:17 +01:00
.admin-sub-header {
display: flex;
align-items: center;
margin-bottom: 30px;
2018-04-26 16:11:38 +02:00
.form-sub-title {
2017-12-08 14:34:17 +01:00
flex-grow: 1;
}
2018-08-14 16:01:54 +02:00
.admin-sub-nav a {
@include disable-default-a-behaviour;
font-size: 16px;
color: var(--mainForegroundColor);
2018-08-14 16:01:54 +02:00
padding: 5px 15px;
border-radius: 0.25rem;
&.active {
font-weight: $font-semibold;
background-color: #f0f0f0;
color: #000;
2018-08-14 16:01:54 +02:00
}
}
2017-12-08 14:34:17 +01:00
}
2018-04-26 16:11:38 +02:00
.form-sub-title {
2017-12-08 10:41:49 +01:00
font-size: 20px;
font-weight: bold;
2017-12-07 10:33:16 +01:00
}
@keyframes spin {
from { transform: scale(1) rotate(0deg);}
to { transform: scale(1) rotate(360deg);}
}
2017-12-21 15:24:49 +01:00
// In tables, don't have a hover different background
table {
.action-button-edit, .action-button-delete {
&:hover, &:active, &:focus, &[disabled], &.disabled {
background-color: $grey-background-color !important;
2017-12-21 15:24:49 +01:00
}
}
}
2018-08-30 14:58:00 +02:00
.no-results {
height: 40vh;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
font-weight: $font-semibold;
}
.dropdown-item {
@include dropdown-with-icon-item;
my-global-icon {
width: 22px;
height: 22px;
}
}
@media screen and (max-width: #{map-get($grid-breakpoints, xxl)}) {
.main-col {
&.expanded {
.margin-content {
margin-left: $expanded-horizontal-margins/2;
margin-right: $expanded-horizontal-margins/2;
}
}
}
}
@media screen and (max-width: #{map-get($grid-breakpoints, lg)}) {
2018-01-31 11:38:05 +01:00
.main-col {
&.expanded {
2018-01-31 11:38:05 +01:00
.margin-content {
margin-left: $expanded-horizontal-margins/3;
margin-right: $expanded-horizontal-margins/3;
2018-01-31 11:38:05 +01:00
}
.sub-menu {
padding-left: 50px;
2018-08-21 16:18:59 +02:00
.title-page {
font-size: 17px;
2018-08-21 16:18:59 +02:00
}
}
2018-01-31 11:38:05 +01:00
}
}
}
2018-09-05 11:20:44 +02:00
@media screen and (max-width: $small-view) {
2017-12-11 10:02:17 +01:00
.main-col {
margin-left: 0;
&, &.expanded {
.margin-content {
margin-left: 15px;
margin-right: 15px;
2017-12-11 10:02:17 +01:00
}
.sub-menu {
2019-04-11 11:18:19 +02:00
width: 100vw;
overflow-x: auto;
padding-left: 15px;
2018-08-21 16:18:59 +02:00
padding-right: 15px;
2017-12-11 10:02:17 +01:00
margin-bottom: 10px;
}
input[type=text], input[type=password] {
width: 100% !important;
}
}
}
}