2024-05-23 09:42:14 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-09-20 12:59:01 +00:00
|
|
|
/* stylelint-disable custom-property-pattern */
|
|
|
|
|
|
|
|
/*
|
|
|
|
Here we are getting some Peertube variables (see _variables.scss in Peertube source code):
|
|
|
|
We are disabling stylelint-disable custom-property-pattern so we can use Peertube var without warnings.
|
|
|
|
*/
|
2023-09-20 14:43:25 +00:00
|
|
|
$font-size: 13px;
|
|
|
|
$button-calc-line-height: 19px; // $font-size + math.round(math.div($font-size, 2));
|
|
|
|
$button-font-size: 15px;
|
|
|
|
$font-bold: 700;
|
2023-09-20 12:59:01 +00:00
|
|
|
$font-semibold: 600;
|
|
|
|
$grey-actor-name: #777272;
|
|
|
|
$grey-background-color: var(--greyBackgroundColor);
|
|
|
|
$sub-menu-margin-bottom: 30px;
|
|
|
|
$small-view: 800px;
|
|
|
|
|
|
|
|
/*
|
|
|
|
These are styles to apply for the channel configuration pages.
|
|
|
|
*/
|
|
|
|
.peertube-plugin-livechat-configuration {
|
|
|
|
h1 {
|
2023-09-20 13:06:34 +00:00
|
|
|
padding-top: 40px;
|
|
|
|
|
2023-09-20 12:59:01 +00:00
|
|
|
/* See Peertube sub-menu-h1 mixin */
|
|
|
|
font-size: 1.3rem;
|
|
|
|
border-bottom: 2px solid $grey-background-color;
|
|
|
|
padding-bottom: 15px;
|
|
|
|
margin-bottom: $sub-menu-margin-bottom;
|
|
|
|
}
|
|
|
|
|
2023-09-20 14:43:25 +00:00
|
|
|
/* Channel configuration page */
|
|
|
|
&.peertube-plugin-livechat-configuration-channel {
|
|
|
|
.peertube-plugin-livechat-configuration-channel-info {
|
|
|
|
/* stylelint-disable-next-line value-keyword-case */
|
|
|
|
color: var(--mainForegroundColor);
|
|
|
|
|
|
|
|
span:first-child {
|
|
|
|
/* See Peertube .video-channel-display-name */
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
span:not(:first-child) {
|
|
|
|
/* See Peertube .video-channel-name */
|
|
|
|
margin-left: 5px;
|
|
|
|
font-size: 14px;
|
|
|
|
color: $grey-actor-name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
// See Peertube settings-big-title mixin
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: var(--mainColor);
|
|
|
|
font-weight: $font-bold;
|
|
|
|
font-size: 1rem;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="submit"],
|
|
|
|
input[type="reset"] {
|
|
|
|
// Peertube rounded-line-height-1-5 mixins
|
|
|
|
line-height: $button-calc-line-height;
|
|
|
|
|
|
|
|
// Peertube peertube-button mixin
|
|
|
|
padding: 4px 13px;
|
|
|
|
border: 0;
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
border-radius: 3px !important;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: $button-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="submit"] {
|
|
|
|
// Peertube orange-button mixin
|
|
|
|
&,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
color: #fff;
|
|
|
|
background-color: var(--mainColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: #fff;
|
|
|
|
background-color: var(--mainHoverColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[disabled],
|
|
|
|
&.disabled {
|
|
|
|
cursor: default;
|
|
|
|
color: #fff;
|
|
|
|
background-color: var(--inputBorderColor);
|
|
|
|
}
|
|
|
|
}
|
2023-09-26 12:12:30 +00:00
|
|
|
|
|
|
|
input[type="reset"] {
|
|
|
|
// Peertube grey-button mixin
|
|
|
|
background-color: var(--greyBackgroundColor);
|
|
|
|
color: var(--greyForegroundColor);
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&[disabled],
|
|
|
|
&.disabled {
|
|
|
|
color: var(--greyForegroundColor);
|
|
|
|
background-color: var(--greySecondaryBackgroundColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[disabled],
|
|
|
|
&.disabled {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
2023-09-20 14:43:25 +00:00
|
|
|
}
|
|
|
|
|
2023-09-20 12:59:01 +00:00
|
|
|
/* Channel selection page */
|
|
|
|
&.peertube-plugin-livechat-configuration-home {
|
|
|
|
ul.peertube-plugin-livechat-configuration-home-channels {
|
|
|
|
list-style-type: none;
|
|
|
|
|
|
|
|
li {
|
|
|
|
align-items: center;
|
|
|
|
gap: 15px;
|
|
|
|
|
|
|
|
/* See Peertube row-blocks mixin, used in video-channel */
|
|
|
|
display: flex;
|
|
|
|
min-height: 130px;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
/* stylelint-disable-next-line value-keyword-case */
|
|
|
|
border-bottom: 1px solid var(--inputBorderColor);
|
|
|
|
|
|
|
|
@media screen and (max-width: $small-view) {
|
|
|
|
flex-direction: column;
|
|
|
|
height: auto;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
/* See Peertube CSS, class avatar and avatar-80 */
|
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
|
|
|
min-width: 80px;
|
|
|
|
min-height: 80px;
|
|
|
|
|
|
|
|
&.channel {
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.initial {
|
|
|
|
/* See Peertube actor-avatar.component.scss */
|
|
|
|
background-color: #3c2109;
|
|
|
|
color: #fff;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
font-size: var(--initialFontSize);
|
|
|
|
|
|
|
|
&.gray {
|
|
|
|
background-color: #939393;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.peertube-plugin-livechat-configuration-home-info {
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
a {
|
|
|
|
/* See Peertube .video-channel-names */
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
text-decoration: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus:not(.focus-visible) {
|
|
|
|
outline: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
width: fit-content;
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
/* stylelint-disable-next-line value-keyword-case */
|
|
|
|
color: var(--mainForegroundColor);
|
|
|
|
|
|
|
|
div:first-child {
|
|
|
|
/* See Peertube .video-channel-display-name */
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div:not(:first-child) {
|
|
|
|
/* See Peertube .video-channel-name */
|
|
|
|
margin-left: 5px;
|
|
|
|
font-size: 14px;
|
|
|
|
color: $grey-actor-name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-05-23 16:38:07 +00:00
|
|
|
|
|
|
|
livechat-dynamic-table-form {
|
|
|
|
table {
|
|
|
|
table-layout: fixed;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
tr {
|
|
|
|
border: 1px var(--greyBackgroundColor) solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
word-wrap: break-word;
|
|
|
|
vertical-align: top;
|
|
|
|
padding: 5px 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
td:last-child {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody tr:nth-child(odd) {
|
|
|
|
background-color: var(--greySecondaryBackgroundColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
padding: 2px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dynamic-table-add-row {
|
|
|
|
background-color: var(--bs-green);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dynamic-table-remove-row {
|
|
|
|
background-color: var(--bs-orange);
|
|
|
|
}
|
|
|
|
}
|