PeerTube/client/src/app/app.component.scss

131 lines
2.3 KiB
SCSS
Raw Normal View History

2017-12-11 17:36:46 +01:00
@import '_variables';
@import '_mixins';
2020-05-28 11:15:38 +02:00
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
2017-12-11 17:36:46 +01:00
2020-06-26 08:37:26 +02:00
$assets-path: '../assets';
2020-03-18 10:11:59 +01:00
.peertube-container {
padding-bottom: 20px;
}
2017-04-26 21:22:00 +02:00
.main-row {
min-height: calc(100vh - #{$header-height} - #{$footer-height} - #{$footer-margin});
}
2017-12-01 09:20:19 +01:00
.sub-header-container {
margin-top: $header-height;
background-color: pvar(--mainBackgroundColor);
width: 100%;
2017-12-01 09:20:19 +01:00
}
2017-04-26 21:22:00 +02:00
.header {
height: $header-height;
2017-12-01 09:20:19 +01:00
position: fixed;
2017-12-01 13:08:46 +01:00
top: 0;
2017-12-01 09:20:19 +01:00
width: 100%;
background-color: pvar(--mainBackgroundColor);
2020-02-13 15:09:31 +01:00
z-index: z(header);
2017-12-01 09:20:19 +01:00
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
display: flex;
2017-04-21 17:12:28 +02:00
2017-04-26 21:22:00 +02:00
.top-left-block {
z-index: 1;
2017-04-29 18:34:10 +02:00
height: $header-height;
2017-04-23 11:18:11 +02:00
display: flex;
2017-12-01 13:08:46 +01:00
align-items: center;
min-width: 0;
2017-12-01 13:08:46 +01:00
.icon {
2018-05-09 08:30:03 +02:00
@include icon(24px);
2017-12-01 13:08:46 +01:00
&.icon-menu {
background-color: pvar(--mainForegroundColor);
2020-06-26 08:37:26 +02:00
mask-image: url('#{$assets-path}/images/misc/menu.svg');
2018-01-31 11:38:05 +01:00
margin: 0 18px 0 20px;
2017-04-26 21:22:00 +02:00
}
}
2019-07-16 16:09:58 +02:00
.peertube-title {
@include disable-default-a-behaviour;
2019-07-16 16:09:58 +02:00
2017-12-01 13:08:46 +01:00
font-size: 20px;
font-weight: $font-bold;
color: inherit !important;
display: flex;
align-items: center;
overflow: hidden;
2017-12-01 13:08:46 +01:00
.instance-name {
2019-02-20 15:52:03 +01:00
@include ellipsis;
width: 100%;
}
2017-12-01 13:08:46 +01:00
.icon.icon-logo {
display: inline-block;
2017-12-07 10:27:33 +01:00
width: 23px;
2017-12-01 09:20:19 +01:00
height: 24px;
margin-right: .5rem;
2017-04-21 17:12:28 +02:00
}
}
2017-05-01 18:05:28 +02:00
@media screen and (max-width: $mobile-view) {
2017-12-11 08:50:43 +01:00
width: 70px;
2019-07-16 16:09:58 +02:00
.peertube-title {
2017-05-01 18:05:28 +02:00
display: none;
}
}
2018-02-20 16:13:05 +01:00
@media screen and (max-width: 350px) {
flex: auto;
}
2017-04-21 17:12:28 +02:00
}
2017-12-01 09:20:19 +01:00
.header-right {
height: $header-height;
2017-12-01 13:08:46 +01:00
display: flex;
align-items: center;
justify-content: flex-end;
white-space: nowrap;
flex: 1;
2017-04-26 21:22:00 +02:00
}
2017-04-21 18:26:09 +02:00
}
2020-05-28 11:15:38 +02:00
.broadcast-message {
min-height: 50px;
text-align: center;
margin-bottom: 0;
border-radius: 0;
display: grid;
grid-template-columns: 1fr 30px;
column-gap: 10px;
my-global-icon {
justify-self: center;
align-self: center;
cursor: pointer;
width: 20px;
}
@each $color, $value in $theme-colors {
&.alert-#{$color} {
my-global-icon {
@include apply-svg-color(theme-color-level($color, $alert-color-level));
}
}
}
::ng-deep {
p {
font-size: 16px;
}
p:last-child {
margin-bottom: 0;
}
}
}