margin-right: 5px;
&.category {
- background-color: var(--mainColor);
+ background-color: pvar(--mainColor);
}
}
}
<div class="no-results my-5" i18n *ngIf="getVideosOf(videoChannel).length === 0">This channel doesn't have any videos.</div>
<my-video-miniature
+ class="pr-2"
*ngFor="let video of getVideosOf(videoChannel)"
[video]="video" [user]="user" [displayVideoActions]="true"
></my-video-miniature>
display: inline-block;
&, &:hover {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
span {
font-size: 80%;
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
}
display: inline-block;
&, &:hover {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
span {
font-size: 80%;
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
}
display: inline-block;
&, &:hover {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
span {
font-size: 80%;
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
}
display: inline-block;
&, &:hover {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
span {
font-size: 80%;
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
}
}
.screenratio {
- position: relative;
- width: 100%;
- height: 0;
- padding-bottom: 56%;
-
div {
@include miniature-thumbnail;
- position: absolute;
- height: 100%;
- width: 100%;
display: inline-flex;
justify-content: center;
align-items: center;
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
- ::ng-deep iframe {
- position: absolute;
+ @include large-screen-ratio($selector: 'div, ::ng-deep iframe') {
width: 100% !important;
height: 100% !important;
left: 0;
- top: 0;
- }
+ };
}
.chip {
}
span {
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
.video-table-video-image-label {
flex-direction: column;
justify-content: center;
font-size: 90%;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
line-height: 1rem;
div .glyphicon {
.plugin {
margin: 15px 0;
- background-color: var(--submenuColor);
+ background-color: pvar(--submenuColor);
}
.first-row {
margin-left: 10px;
my-global-icon {
- @include apply-svg-color(var(--greyForegroundColor));
+ @include apply-svg-color(pvar(--greyForegroundColor));
&[iconName="npm"] {
- @include fill-svg-color(var(--greyForegroundColor));
+ @include fill-svg-color(pvar(--greyForegroundColor));
}
}
}
}
.ui-button.ui-state-active {
- background-color: var(--mainColor);
- border-color: var(--mainColor);
+ background-color: pvar(--mainColor);
+ border-color: pvar(--mainColor);
&:hover {
- background-color: var(--mainHoverColor);
- border-color: var(--mainHoverColor);
+ background-color: pvar(--mainHoverColor);
+ border-color: pvar(--mainHoverColor);
}
}
}
.warn {
- color: var(--mainColor);
+ color: pvar(--mainColor);
}
.error {
width: fit-content;
display: flex;
align-items: baseline;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
.video-channel-display-name {
font-weight: $font-semibold;
width: fit-content;
display: flex;
align-items: baseline;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
.video-channel-display-name {
font-weight: $font-semibold;
@import '_miniature';
.playlist-info {
- background-color: var(--submenuColor);
+ background-color: pvar(--submenuColor);
margin-left: -15px;
margin-top: -$sub-menu-margin-bottom;
/* fix ellipsis dots background color */
::ng-deep .miniature-name::after {
- background-color: var(--submenuColor) !important;
+ background-color: pvar(--submenuColor) !important;
}
}
.video-bottom,
.video-bottom .video-miniature-information {
/* same width than a.video-thumbnail */
- max-width: 223px !important;
+ max-width: $video-thumbnail-width !important;
}
}
}
::ng-deep {
.action-button {
/* same width than a.video-thumbnail */
- width: 223px;
+ width: $video-thumbnail-width;
}
}
}
flex-direction: column;
.video-miniature-name {
- max-width: 223px;
+ max-width: $video-thumbnail-width;
}
}
}
margin-bottom: 10px;
my-global-icon {
- @include apply-svg-color(var(--mainBackgroundColor));
+ @include apply-svg-color(pvar(--mainBackgroundColor));
width: 22px;
height: 22px;
&.active,
&.completed {
.step-index {
- border-color: var(--mainColor);
- background-color: var(--mainColor);
- color: var(--mainBackgroundColor);
+ border-color: pvar(--mainColor);
+ background-color: pvar(--mainColor);
+ color: pvar(--mainBackgroundColor);
}
.step-label {
- color: var(--mainColor);
+ color: pvar(--mainColor);
}
}
ngb-accordion ::ng-deep {
.btn {
font-weight: $font-semibold !important;
- color: var(--mainForegroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
}
}
}
margin-bottom: 20px;
::ng-deep .loader div {
- border-color: var(--mainColor) transparent transparent transparent;
+ border-color: pvar(--mainColor) transparent transparent transparent;
}
& + div {
super()
this.titlePage = this.i18n('Published videos')
+ this.displayOptions = {
+ ...this.displayOptions,
+ avatar: false
+ }
}
ngOnInit () {
.sub-header-container {
margin-top: $header-height;
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
width: 100%;
}
position: fixed;
top: 0;
width: 100%;
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
z-index: z(header);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
display: flex;
@include icon(24px);
&.icon-menu {
- background-color: var(--mainForegroundColor);
+ background-color: pvar(--mainForegroundColor);
mask-image: url('../assets/images/header/menu.svg');
margin: 0 18px 0 20px;
}
background: url('../assets/images/logo.svg') no-repeat;
width: 23px;
height: 24px;
+ margin-right: .5rem;
}
}
font-size: 14px;
&::placeholder {
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
}
@include icon(25px);
height: 21px;
- background-color: var(--mainForegroundColor);
+ background-color: pvar(--mainForegroundColor);
mask: url('../../assets/images/header/search.svg') no-repeat 50% 50%;
// yolo
#typeahead-help,
#typeahead-instructions,
my-suggestions ::ng-deep ul {
- border: 1px solid var(--mainBackgroundColor);
+ border: 1px solid pvar(--mainBackgroundColor);
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
- background: var(--mainBackgroundColor);
+ background: pvar(--mainBackgroundColor);
transition: .3s ease;
transition-property: box-shadow;
}
#typeahead-container {
input {
- border: 1px solid var(--mainBackgroundColor) !important;
+ border: 1px solid pvar(--mainBackgroundColor) !important;
box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px;
flex-grow: 1;
transition: box-shadow .3s ease, width .2s ease;
width: 100%;
&, &:hover {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
&.focus-visible {
- background-color: var(--mainHoverColor);
- color: var(--mainBackgroundColor);
+ background-color: pvar(--mainHoverColor);
+ color: pvar(--mainBackgroundColor);
}
}
}
.bg-gray {
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
}
.text-gray-light {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
my-global-icon {
top: -2px;
margin: 5px;
- @include apply-svg-color(var(--mainForegroundColor));
+ @include apply-svg-color(pvar(--mainForegroundColor));
}
}
.create-an-account, .forgot-password-button {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
cursor: pointer;
transition: opacity cubic-bezier(0.39, 0.575, 0.565, 1);
cursor: pointer;
border: 1px solid #d1d7e0;
border-radius: 5px;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
margin: 10px 10px 0 0;
display: flex;
justify-content: center;
align-items: center;
justify-content: center;
- background-color: var(--mainColor);
- color: var(#fff);
+ background-color: pvar(--mainColor);
+ color: #fff;
font-size: 10px;
font-weight: $font-semibold;
padding: 0;
width: $menu-width;
z-index: z(menu);
- scrollbar-color: var(--actionButtonColor) var(--menuBackgroundColor);
+ scrollbar-color: pvar(--actionButtonColor) pvar(--menuBackgroundColor);
}
menu {
@include ellipsis;
- background-color: var(--menuBackgroundColor);
+ background-color: pvar(--menuBackgroundColor);
margin: 0;
padding: 0;
height: 100%;
overflow-x: hidden;
- color: var(--menuForegroundColor);
+ color: pvar(--menuForegroundColor);
display: flex;
flex-direction: column;
width: 100%;
.logged-in-display-name {
font-size: 16px;
font-weight: $font-semibold;
- color: var(--menuForegroundColor);
+ color: pvar(--menuForegroundColor);
cursor: pointer;
@include disable-default-a-behaviour;
}
::ng-deep {
- @include apply-svg-color(var(--menuForegroundColor));
+ @include apply-svg-color(pvar(--menuForegroundColor));
}
}
}
display: flex;
align-items: center;
padding-left: $menu-lateral-padding;
- color: var(--menuForegroundColor);
+ color: pvar(--menuForegroundColor);
cursor: pointer;
min-height: 40px;
font-size: 16px;
a, span[role=button] {
display: inline-block;
text-decoration: none;
- color: var(--mainBackgroundColor);
+ color: pvar(--mainBackgroundColor);
opacity: $footer-links-base-opacity;
white-space: nowrap;
font-size: 90%;
height: 1.4rem;
my-global-icon {
- @include apply-svg-color(var(--mainBackgroundColor));
+ @include apply-svg-color(pvar(--mainBackgroundColor));
display: flex;
width: auto;
.footer-copyleft small a {
@include disable-default-a-behaviour;
- color: var(--mainBackgroundColor);
+ color: pvar(--mainBackgroundColor);
opacity: $footer-links-base-opacity - .2;
}
}
left: 3px;
width: 14px;
height: 14px;
- background: var(--mainBackgroundColor);
+ background: pvar(--mainBackgroundColor);
border-radius: 50%;
transition: 0.3s ease-out;
}
}
input:checked + label {
- background: var(--mainColor);
+ background: pvar(--mainColor);
&:after {
left: calc(100% - 3px);
.link-block {
@include disable-default-a-behaviour;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
padding: 10px;
transition: background-color 0.2s ease-in;
flex-basis: 33%;
display: flex;
align-items: baseline;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
width: fit-content;
.video-channel-display-name {
// Override the min-width: 500px to not break screen
::ng-deep .video-miniature-information {
- min-width: 223px !important;
+ min-width: $video-thumbnail-width !important;
}
}
width: 21px;
::ng-deep {
- @include apply-svg-color(var(--actionButtonColor));
+ @include apply-svg-color(pvar(--actionButtonColor));
}
}
a:nth-of-type(2) img {
height: 60%;
width: 60%;
- border: 2px solid var(--mainBackgroundColor);
+ border: 2px solid pvar(--mainBackgroundColor);
transform: translateX(15%);
position: relative;
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
}
}
textarea {
@include peertube-textarea(100%, 150px);
- background-color: var(--markdownTextareaBackgroundColor);
+ background-color: pvar(--markdownTextareaBackgroundColor);
font-family: monospace;
font-size: 13px;
flex-grow: 1;
border-bottom-left-radius: unset;
border-bottom-right-radius: unset;
- border-bottom: 2px solid var(--mainColor);
+ border-bottom: 2px solid pvar(--mainColor);
:first-child {
margin-left: auto;
padding-left: 0px;
padding-right: 0px;
position: absolute;
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
width: 100% !important;
border-top: none;
border-left: none;
::ng-deep .tab-content {
@include content-preview-base();
- background-color: var(--mainBackgroundColor);
- scrollbar-color: var(--actionButtonColor) var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
+ scrollbar-color: pvar(--actionButtonColor) pvar(--mainBackgroundColor);
}
textarea,
padding: $base-padding;
border-right: 1px dashed $input-border-color !important;
resize: none;
- scrollbar-color: var(--actionButtonColor) var(--markdownTextareaBackgroundColor);
+ scrollbar-color: pvar(--actionButtonColor) pvar(--markdownTextareaBackgroundColor);
&:focus {
box-shadow: none;
font-size: 12px;
line-height: 12px;
font-weight: 500;
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
background-color: rgba(217,225,232,.1);
border: 1px solid rgba(217,225,232,.5);
}
&:focus-within,
&:focus {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
}
}
}
&.no-image {
border: 2px solid grey;
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
}
}
}
table {
font-size: 14px;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
.label,
.sub-label {
width: 100%;
&.active {
- color: var(--mainBackgroundColor) !important;
- background-color: var(--mainHoverColor);
+ color: pvar(--mainBackgroundColor) !important;
+ background-color: pvar(--mainHoverColor);
opacity: .9;
}
}
top: -2px;
margin: 5px;
- @include apply-svg-color(var(--mainForegroundColor))
+ @include apply-svg-color(pvar(--mainForegroundColor))
}
}
text-align: left;
padding: 10px;
font-size: 13px;
- background-color: var(--mainBackgroundColor);
- color: var(--mainForegroundColor);
+ background-color: pvar(--mainBackgroundColor);
+ color: pvar(--mainForegroundColor);
border-radius: 3px;
p {
&.routeActive {
&::after {
display: inherit;
- border: 2px solid var(--mainColor);
+ border: 2px solid pvar(--mainColor);
position: relative;
right: 95%;
top: 50%;
width: 100%;
&.active {
- color: var(--mainBackgroundColor) !important;
- background-color: var(--mainHoverColor);
+ color: pvar(--mainBackgroundColor) !important;
+ background-color: pvar(--mainHoverColor);
opacity: .9;
}
}
const secondsPadding = seconds >= 10 ? '' : '0'
const displayedHours = hours > 0 ? hours.toString() + ':' : ''
- return displayedHours + minutesPadding + minutes.toString() + ':' + secondsPadding + seconds.toString()
+ return (
+ displayedHours + minutesPadding + minutes.toString() + ':' + secondsPadding + seconds.toString()
+ ).replace(/^0/, '')
}
function immutableAssign <A, B> (target: A, source: B) {
.from-date {
font-size: 0.85em;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
padding-left: 5px;
min-width: 70px;
text-align: right;
.timestamp-info {
font-size: 0.9em;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
margin-left: 5px;
}
}
.video {
display: flex;
align-items: center;
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
padding: 10px;
border-bottom: 1px solid $separator-border-color;
a {
@include disable-default-a-behaviour;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
display: flex;
min-width: 0;
align-items: center;
.position {
font-weight: $font-semibold;
margin-right: 10px;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
min-width: 25px;
my-global-icon {
- @include apply-svg-color(var(--greyForegroundColor));
+ @include apply-svg-color(pvar(--greyForegroundColor));
width: 17px;
position: relative;
}
.video-info-account, .video-info-timestamp {
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
}
}
}
}
.icon-more {
- @include apply-svg-color(var(--greyForegroundColor));
+ @include apply-svg-color(pvar(--greyForegroundColor));
display: flex;
@include disable-default-a-behaviour;
display: block;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
}
.privacy-date {
.video-info-description {
margin-top: 10px;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
}
}
}
</div>
<my-video-miniature
+ [fitWidth]="true"
[video]="video" [user]="user" [ownerDisplayType]="ownerDisplayType"
[displayVideoActions]="displayVideoActions" [displayOptions]="displayOptions"
(videoBlacklisted)="removeVideoFromArray(video)" (videoRemoved)="removeVideoFromArray(video)"
+@import '_bootstrap-variables';
+@import '_variables';
@import '_mixins';
@import '_miniature';
+.videos {
+ display: grid;
+ column-gap: calc(10px + .2%);
+ grid-template-columns: repeat(
+ auto-fill,
+ minmax(
+ var(--miniature-min-width, #{$video-thumbnail-width}),
+ 1fr
+ )
+ );
+
+ @media screen and (min-width: #{breakpoint(xxl)}) {
+ --miniature-min-width: 300px;
+ }
+}
+
.videos-header {
display: flex;
justify-content: space-between;
margin-top: -10px;
padding-top: 20px;
+ // make the element span a full grid row within .videos grid
+ grid-column: 1 / -1;
+
&:not(:first-child) {
border-top: 1px solid $separator-border-color;
}
}
-.margin-content {
- @include adapt-margin-content-width;
+:host-context(.main-col:not(.expanded)) .margin-content {
+ @include adapt-margin-content-width($fluid: true);
}
@media screen and (max-width: $mobile-view) {
position: relative;
top: -2px;
- @include apply-svg-color(var(--mainForegroundColor))
+ @include apply-svg-color(pvar(--mainForegroundColor))
}
}
min-width: 142px;
padding-right: 5px;
display: inline-block;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
font-weight: $font-bold;
}
a.metadata-attribute-value {
@include disable-default-a-behaviour;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
&:hover {
opacity: 0.9;
-<div class="video-miniature" [ngClass]="{ 'display-as-row': displayAsRow }" (mouseenter)="loadActions()">
+<div class="video-miniature" [ngClass]="{ 'display-as-row': displayAsRow, 'fit-width': fitWidth }" (mouseenter)="loadActions()">
<my-video-thumbnail
[video]="video" [nsfw]="isVideoBlur"
[displayWatchLaterPlaylist]="isWatchLaterPlaylistDisplayed()" [inWatchLaterPlaylist]="inWatchLaterPlaylist" (watchLaterClick)="onWatchLaterClick($event)"
$more-margin-right: 15px;
.video-miniature {
- width: $video-miniature-width;
display: inline-flex;
flex-direction: column;
margin-bottom: $video-miniature-margin-bottom;
.video-miniature-information {
width: $video-miniature-width - $more-button-width - $more-margin-right;
line-height: normal;
+ font-size: 13px;
.video-miniature-name {
@include miniature-name;
+ font-size: 110%;
}
.video-miniature-created-at-views {
display: block;
- font-size: 13px;
+ font-size: 95%;
}
.video-miniature-account,
@include ellipsis;
display: block;
- font-size: 13px;
- color: var(--greyForegroundColor);
+ font-size: 95%;
+ color: pvar(--greyForegroundColor);
&:hover {
color: $grey-foreground-hover-color;
@media screen and (max-width: $small-view) {
.video-miniature-information {
margin: 0 10px;
-
- .video-miniature-name {
- margin-top: 0;
- }
}
.video-actions {
opacity: 1;
}
+ &.fit-width {
+ width: 100%;
+ height: unset;
+ margin-bottom: $video-miniature-margin-bottom / 2;
+
+ .video-bottom {
+ width: 100% !important;
+
+ .video-miniature-information {
+ width: calc(100% - 40px) !important;
+ }
+ }
+
+ my-video-thumbnail {
+ @include large-screen-ratio($selector: '::ng-deep .video-thumbnail');
+ }
+ }
+
&.display-as-row {
flex-direction: row;
margin-bottom: 0;
.video-miniature-created-at-views,
.video-miniature-account,
.video-miniature-channel {
- font-size: 14px;
+ font-size: 95%;
width: fit-content;
}
}
@Input() displayAsRow = false
@Input() displayVideoActions = true
+ @Input() fitWidth = false
@Output() videoBlacklisted = new EventEmitter()
@Output() videoUnblacklisted = new EventEmitter()
div {
height: 100%;
- background-color: var(--mainColor);
+ background-color: pvar(--mainColor);
}
}
border-radius: 3px;
font-size: 12px;
- font-weight: $font-bold;
+ font-weight: $font-semibold;
+ line-height: 1.2;
z-index: z(miniature);
}
padding: 0 5px;
left: 5px;
top: 5px;
+ font-weight: $font-bold;
&.warning { background-color: orange; }
&.danger { background-color: red; }
.video-thumbnail-duration-overlay {
position: absolute;
- padding: 0 5px;
+ padding: 0 3px;
right: 5px;
bottom: 5px;
}
}
.title-page a {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
&:hover {
text-decoration: none;
display: inline-block;
margin-right: 25px;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
font-size: 15px;
}
.first-step-block {
.torrent-or-magnet {
- @include divider($color: var(--inputPlaceholderColor), $background: var(--submenuColor));
+ @include divider($color: pvar(--inputPlaceholderColor), $background: pvar(--submenuColor));
&[data-content] {
margin: 1.5rem 0;
&.active {
border: $border-width $border-type $border-color;
border-bottom: none;
- background-color: var(--submenuColor) !important;
+ background-color: pvar(--submenuColor) !important;
span {
- border-bottom: 2px solid var(--mainColor);
+ border-bottom: 2px solid pvar(--mainColor);
font-weight: $font-bold;
}
}
border: $border-width $border-type $border-color;
border-top: transparent;
- background-color: var(--submenuColor);
+ background-color: pvar(--submenuColor);
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
width: 100%;
align-items: center;
&.dragover {
- border: 3px dashed var(--mainColor);
+ border: 3px dashed pvar(--mainColor);
}
}
/* Hide active tab style to not have a moving tab effect */
a.nav-link.active {
border: none;
- background-color: var(--mainBackgroundColor) !important;
+ background-color: pvar(--mainBackgroundColor) !important;
}
}
}
a {
@include disable-default-a-behaviour;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
.comment-account-fid {
.comment-date {
font-size: 90%;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
margin-left: 5px;
text-decoration: none;
}
&:not(.linkified-url) {
@include disable-default-a-behaviour;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
font-weight: $font-semibold;
}
}
&.comment-html-deleted {
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
margin-bottom: 1rem;
}
}
::ng-deep .dropdown-toggle,
.comment-action-reply,
.comment-action-delete {
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
cursor: pointer;
margin-right: 10px;
&:hover {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
}
min-width: 200px;
max-width: 470px;
height: 66vh;
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
overflow-y: auto;
border-bottom: 1px solid $separator-border-color;
}
.playlist-by-index {
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
display: flex;
.playlist-by {
a {
@include disable-default-a-behaviour;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
&:hover {
opacity: 0.8;
::ng-deep.action-button {
@include peertube-button;
@include button-with-icon(21px, 0, -1px);
- @include apply-svg-color(var(--actionButtonColor));
+ @include apply-svg-color(pvar(--actionButtonColor));
font-size: 100%;
font-weight: $font-semibold;
padding: 0 10px 0 10px;
white-space: nowrap;
background-color: transparent !important;
- color: var(--actionButtonColor);
+ color: pvar(--actionButtonColor);
text-transform: uppercase;
&::after {
&.action-button-like.activated {
.count {
- color: var(--activatedActionButtonColor);
+ color: pvar(--activatedActionButtonColor);
}
my-global-icon {
- @include apply-svg-color(var(--activatedActionButtonColor));
+ @include apply-svg-color(pvar(--activatedActionButtonColor));
}
}
&.action-button-dislike.activated {
.count {
- color: var(--activatedActionButtonColor);
+ color: pvar(--activatedActionButtonColor);
}
my-global-icon {
- @include apply-svg-color(var(--activatedActionButtonColor));
+ @include apply-svg-color(pvar(--activatedActionButtonColor));
}
}
&.action-button-support {
- color: var(--supportButtonColor);
+ color: pvar(--supportButtonColor);
my-global-icon {
- @include apply-svg-color(var(--supportButtonColor));
+ @include apply-svg-color(pvar(--supportButtonColor));
}
}
&.action-button-support {
my-global-icon {
::ng-deep path:first-child {
- fill: var(--supportButtonHeartColor) !important;
+ fill: pvar(--supportButtonHeartColor) !important;
}
}
}
background-color: #909090;
&.liked {
- background-color: var(--activatedActionButtonColor);
+ background-color: pvar(--activatedActionButtonColor);
}
}
}
.video-info-description-more {
cursor: pointer;
font-weight: $font-semibold;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
font-size: 14px;
.glyphicon {
min-width: 142px;
padding-right: 5px;
display: inline-block;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
font-weight: $font-bold;
}
a.video-attribute-value {
@include disable-default-a-behaviour;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
&:hover {
opacity: 0.9;
a {
@include disable-default-a-behaviour;
- color: var(--mainColor);
+ color: pvar(--mainColor);
transition: color 0.3s;
&:hover {
}
.privacy-concerns-okay {
- background-color: var(--mainColor);
+ background-color: pvar(--mainColor);
margin-left: 10px;
}
}
<a routerLink="/search" [queryParams]="{ categoryOneOf: [ object.category.id ] }">{{ object.category.label }}</a>
</div>
- <my-video-miniature *ngFor="let video of buildVideos(object.videos)" [video]="video" [user]="user" [displayVideoActions]="false">
+ <my-video-miniature class="pr-2" *ngFor="let video of buildVideos(object.videos)" [video]="video" [user]="user" [displayVideoActions]="false">
</my-video-miniature>
</div>
<a routerLink="/search" [queryParams]="{ tagsOneOf: [ object.tag ] }">#{{ object.tag }}</a>
</div>
- <my-video-miniature *ngFor="let video of buildVideos(object.videos)" [video]="video" [user]="user" [displayVideoActions]="false">
+ <my-video-miniature class="pr-2" *ngFor="let video of buildVideos(object.videos)" [video]="video" [user]="user" [displayVideoActions]="false">
</my-video-miniature>
</div>
</a>
</div>
- <my-video-miniature *ngFor="let video of buildVideos(object.videos)" [video]="video" [user]="user" [displayVideoActions]="false">
+ <my-video-miniature class="pr-2" *ngFor="let video of buildVideos(object.videos)" [video]="video" [user]="user" [displayVideoActions]="false">
</my-video-miniature>
</div>
--actionButtonColor: #{$grey-foreground-color};
--supportButtonBackgroundColor: #{transparent};
- --supportButtonColor: #{var(--actionButtonColor)};
+ --supportButtonColor: #{pvar(--actionButtonColor)};
--supportButtonHeartColor: #{$support-button-heart};
--activatedActionButtonColor: #{$activated-action-button-color};
font-family: $main-fonts;
font-weight: $font-regular;
- color: var(--mainForegroundColor);
- background-color: var(--mainBackgroundColor);
+ color: pvar(--mainForegroundColor);
+ background-color: pvar(--mainBackgroundColor);
font-size: 14px;
}
::selection {
- color: var(--mainBackgroundColor);
- background-color: var(--mainHoverColor);
+ color: pvar(--mainBackgroundColor);
+ background-color: pvar(--mainHoverColor);
}
#incompatible-browser {
input.readonly {
/* Force blank on readonly inputs */
- background-color: var(--inputBackgroundColor) !important;
+ background-color: pvar(--inputBackgroundColor) !important;
}
input, textarea {
outline: none;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
label {
}
.sub-menu {
- background-color: var(--submenuColor);
+ background-color: pvar(--submenuColor);
width: 100%;
height: 81px;
margin-bottom: $sub-menu-margin-bottom;
}
.title-page {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
font-size: 16px;
display: inline-block;
margin-right: 55px;
&.active {
font-weight: $font-bold;
- border-bottom: 2px solid var(--mainColor);
+ border-bottom: 2px solid pvar(--mainColor);
}
&.title-page-single {
}
&:hover, &:active, &:focus {
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
@media screen and (max-width: $mobile-view) {
@include disable-default-a-behaviour;
font-size: 16px;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
padding: 5px 15px;
border-radius: 0.25rem;
padding: 3px 15px;
&.active {
- color: var(--mainBackgroundColor) !important;
- background-color: var(--mainHoverColor);
+ color: pvar(--mainBackgroundColor) !important;
+ background-color: pvar(--mainHoverColor);
opacity: .9;
}
text-align: center;
.modal-content {
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
}
.modal-header {
a {
@include disable-default-a-behaviour;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
}
.nav-link {
@include disable-default-a-behaviour;
- color: var(--mainForegroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
}
}
}
&.active {
font-weight: $font-semibold;
- background-color: var(--mainBackgroundColor) !important;
+ background-color: pvar(--mainBackgroundColor) !important;
border: none;
- border-bottom: 2px solid var(--mainColor);
+ border-bottom: 2px solid pvar(--mainColor);
}
&:hover {
border-top-color: transparent;
}
.card {
- background-color: var(--mainBackgroundColor);
+ background-color: pvar(--mainBackgroundColor);
border-color: #dee2e6;
}
}
.btn-outline-tertiary {
- color: var(--secondaryColor);
- border-color: var(--secondaryColor);
+ color: pvar(--secondaryColor);
+ border-color: pvar(--secondaryColor);
&:focus-within,
&:focus,
&:hover {
- color: var(--mainBackgroundColor);
- background-color: var(--secondaryColor);
+ color: pvar(--mainBackgroundColor);
+ background-color: pvar(--secondaryColor);
}
}
// input box-shadow on focus
.form-control {
font-size: 15px;
- color: var(--mainForegroundColor);
- background-color: var(--inputBackgroundColor);
+ color: pvar(--mainForegroundColor);
+ background-color: pvar(--inputBackgroundColor);
outline: none;
&:focus-within,
&:focus {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
&.input-error {
box-shadow: #{$focus-box-shadow-form} #{scale-color($red, $alpha: -75%)};
transition: color 0.2s;
font-weight: $font-semibold;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
margin-top: 10px;
margin-bottom: 5px;
}
&.focus-visible {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
outline: none;
}
outline: none;
}
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
}
}
.followers {
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
font-weight: normal;
font-size: 14px;
margin-left: 10px;
display: inline-block;
font-size: 16px;
text-transform: uppercase;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
margin-bottom: 10px;
font-weight: $font-semibold;
text-decoration: none;
}
}
-@mixin adapt-margin-content-width {
- width: $video-miniature-width * 6;
- margin: auto !important;
+@mixin adapt-margin-content-width($fluid: false) {
+ @if $fluid {
+ margin-left: 3vw !important;
+ margin-right: 3vw !important;
+ } @else {
+ width: $video-miniature-width * 6;
+ margin: auto !important;
- @media screen and (max-width: 1800px) {
- width: $video-miniature-width * 5;
- }
+ @media screen and (max-width: 1800px) {
+ width: $video-miniature-width * 5;
+ }
- @media screen and (max-width: 1800px - $video-miniature-width) {
- width: $video-miniature-width * 4;
- }
+ @media screen and (max-width: 1800px - $video-miniature-width) {
+ width: $video-miniature-width * 4;
+ }
- @media screen and (max-width: 1800px - (2* $video-miniature-width)) {
- width: $video-miniature-width * 3;
- }
+ @media screen and (max-width: 1800px - (2* $video-miniature-width)) {
+ width: $video-miniature-width * 3;
+ }
- @media screen and (max-width: 1800px - (3* $video-miniature-width)) {
- width: $video-miniature-width * 2;
- }
+ @media screen and (max-width: 1800px - (3* $video-miniature-width)) {
+ width: $video-miniature-width * 2;
+ }
- @media screen and (max-width: $mobile-view) {
- width: auto;
- margin: 0 !important;
+ @media screen and (max-width: $mobile-view) {
+ width: auto;
+ margin: 0 !important;
- .videos {
- @include video-miniature-small-screen;
+ .videos {
+ @include video-miniature-small-screen;
+ }
}
}
}
display: inline-block;
height: $button-height;
width: $width;
- color: var(--inputForegroundColor);
- background-color: var(--inputBackgroundColor);
+ color: pvar(--inputForegroundColor);
+ background-color: pvar(--inputBackgroundColor);
border: 1px solid #C6C6C6;
border-radius: 3px;
padding-left: 15px;
font-size: 15px;
&::placeholder {
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
@media screen and (max-width: $width) {
@mixin peertube-textarea ($width, $height) {
@include peertube-input-text($width);
- color: var(--textareaForegroundColor);
- background-color: var(--textareaBackgroundColor);
+ color: pvar(--textareaForegroundColor);
+ background-color: pvar(--textareaBackgroundColor);
height: $height;
padding: 5px 15px;
font-size: 15px;
}
@mixin orange-button {
- @include button-focus(var(--mainColorLightest));
+ @include button-focus(pvar(--mainColorLightest));
&, &:active, &:focus {
color: #fff;
- background-color: var(--mainColor);
+ background-color: pvar(--mainColor);
}
&:hover {
color: #fff;
- background-color: var(--mainHoverColor);
+ background-color: pvar(--mainHoverColor);
}
&[disabled], &.disabled {
@mixin tertiary-button {
@include button-focus($grey-button-outline-color);
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
background-color: transparent;
&[disabled], &.disabled {
&, &:active, &:focus {
background-color: $grey-background-color;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
}
&:hover, &:active, &:focus, &[disabled], &.disabled {
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
background-color: $grey-background-hover-color;
}
}
my-global-icon {
- @include apply-svg-color(var(--greyForegroundColor))
+ @include apply-svg-color(pvar(--greyForegroundColor))
}
}
margin: 0;
width: $width;
border-radius: 3px;
- color: var(--inputForegroundColor);
- background: var(--inputBackgroundColor);
+ color: pvar(--inputForegroundColor);
+ background: pvar(--inputBackgroundColor);
position: relative;
font-size: 15px;
cursor: pointer;
height: $button-height;
text-overflow: ellipsis;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
&:focus {
outline: none;
position: absolute;
&:focus + span {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
}
& + span {
&:checked + span {
border-color: transparent;
- background: var(--mainColor);
+ background: pvar(--mainColor);
animation: jelly 0.6s ease;
&:after {
@mixin in-content-small-title {
text-transform: uppercase;
- color: var(--mainColor);
+ color: pvar(--mainColor);
font-weight: $font-bold;
font-size: 13px;
}
@mixin settings-big-title {
text-transform: uppercase;
- color: var(--mainColor);
+ color: pvar(--mainColor);
font-weight: $font-bold;
font-size: 110%;
margin-bottom: 10px;
font-size: 13px;
margin-top: 4px;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
span:hover {
opacity: 0.8;
border-radius: 0.25rem;
.progress-bar {
- color: var(--mainBackgroundColor);
- background-color: var(--mainColor);
+ color: pvar(--mainBackgroundColor);
+ background-color: pvar(--mainColor);
display: flex;
flex-direction: column;
justify-content: center;
transition: width 0.6s ease;
&.secondary {
- background-color: var(--secondaryColor);
+ background-color: pvar(--secondaryColor);
}
}
}
padding: 0.75rem 1rem;
margin-bottom: 1rem;
list-style: none;
- background-color: var(--submenuColor);
+ background-color: pvar(--submenuColor);
border-radius: 0.25rem;
.breadcrumb-item {
display: flex;
a {
- color: var(--mainColor);
+ color: pvar(--mainColor);
}
& + .breadcrumb-item {
& > a,
& > div {
padding: 20px;
- background: var(--submenuColor);
+ background: pvar(--submenuColor);
border-radius: 4px;
box-sizing: border-box;
height: 100%;
text-align: center;
font-size: 130%;
line-height: 21px;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
line-height: 30px;
margin-bottom: 20px;
}
.dashboard-label {
font-size: 90%;
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
text-align: center;
}
}
height: max-content;
&:focus-within {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
}
}
height: 30px !important;
font-size: 12px !important;
- background-color: var(--mainBackgroundColor) !important;
- color: var(--mainForegroundColor) !important;
+ background-color: pvar(--mainBackgroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
}
}
vertical-align: middle !important;
path {
- fill: var(--greyForegroundColor) !important;
+ fill: pvar(--greyForegroundColor) !important;
}
}
}
}
-@mixin divider($color: var(--submenuColor), $background: var(--mainBackgroundColor)) {
+@mixin divider($color: pvar(--submenuColor), $background: pvar(--mainBackgroundColor)) {
width: 95%;
border-top: .05rem solid $color;
height: .05rem;
border-radius: 5rem;
display: inline-flex;
font-size: 90%;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
height: $avatar-height;
line-height: 1rem;
margin: .1rem;
}
}
}
+
+// applies 16:9 ratio to a child element (using $selector) only using
+// an immediate's parent size. This allows 16:9 ratio without explicit
+// dimensions, as width/height cannot be computed from each other.
+@mixin large-screen-ratio ($selector: 'div') {
+ position: relative;
+ height: 0;
+ width: 100%;
+ padding-top: 56%;
+
+ #{$selector} {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ top: 0;
+ @content;
+ }
+}
--embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor)
);
-@function var($variable) {
+@function pvar($variable) {
@return map-get($variables, $variable);
}
-moz-transition: 350ms linear all;
-o-transition: 350ms linear all;
transition: 350ms linear all;
- color: var(--mainColor);
+ color: pvar(--mainColor);
}
#loading-bar .bar {
-o-transition: width 350ms;
transition: width 350ms;
- background: var(--mainColor);
+ background: pvar(--mainColor);
position: fixed;
z-index: z(loadbar);
top: 0;
.vjs-menu-content {
opacity: $primary-foreground-opacity;
- color: var(--embedForegroundCsolor);
+ color: pvar(--embedForegroundCsolor);
font-size: $font-size !important;
font-weight: $font-semibold;
}
.video-js.vjs-peertube-skin {
font-size: $font-size;
- color: var(--embedForegroundColor);
+ color: pvar(--embedForegroundColor);
.vjs-dock-text {
padding-right: 10px;
.vjs-control-bar,
.vjs-big-play-button,
.vjs-settings-dialog {
- background-color: var(--embedBigPlayBackgroundColor);
+ background-color: pvar(--embedBigPlayBackgroundColor);
}
.vjs-poster {
.vjs-theater-control,
.vjs-settings
{
- color: var(--embedForegroundColor) !important;
+ color: pvar(--embedForegroundColor) !important;
opacity: $primary-foreground-opacity;
transition: opacity .1s;
.vjs-current-time,
.vjs-duration,
.vjs-peertube {
- color: var(--embedForegroundColor);
+ color: pvar(--embedForegroundColor);
opacity: $primary-foreground-opacity;
}
transition: none;
.vjs-play-progress {
- background: var(--embedForegroundColor);
+ background: pvar(--embedForegroundColor);
// Not display the circle if the progress is not hovered
&::before {
position: absolute;
right: .5em;
bottom: 3.5em;
- color: var(--embedForegroundColor);
+ color: pvar(--embedForegroundColor);
opacity: $primary-foreground-opacity;
margin: 0 auto;
font-size: $font-size !important;
@mixin glyphicon-light {
font-family: 'Glyphicons Halflings';
text-decoration: none !important;
- color: var(--mainForegroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
font-display: swap;
}
// focus box-shadow for primeng
.ui-inputtext:enabled:focus:not(.ui-state-error) {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest) !important;
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest) !important;
}
// data table customizations
p-table {
.ui-table-caption {
border: none !important;
- background-color: var(--mainBackgroundColor) !important;
+ background-color: pvar(--mainBackgroundColor) !important;
.caption {
height: 40px;
}
th {
- background-color: var(--mainBackgroundColor) !important;
+ background-color: pvar(--mainBackgroundColor) !important;
outline: 0;
}
td, th {
font-family: $main-fonts;
font-size: 15px !important;
- color: var(--mainForegroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
}
td {
tr {
outline: 0;
- background-color: var(--mainBackgroundColor) !important;
+ background-color: pvar(--mainBackgroundColor) !important;
height: 46px;
&.ui-state-highlight {
- background-color: var(--submenuColor) !important;
+ background-color: pvar(--submenuColor) !important;
td, td > a {
- color: var(--mainForegroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
}
}
}
.ui-table-tbody {
tr {
&:hover {
- background-color: var(--submenuColor) !important;
+ background-color: pvar(--submenuColor) !important;
.action-cell {
.dropdown-root,
th {
border: none !important;
border-bottom: 1px solid !important;
- border-color: var(--submenuColor) !important;
+ border-color: pvar(--submenuColor) !important;
text-align: left !important;
padding: 5px 0 5px 15px !important;
font-weight: $font-semibold !important;
- color: var(--mainForegroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
&.ui-sortable-column:hover {
- background-color: var(--submenuColor) !important;
+ background-color: pvar(--submenuColor) !important;
border: 1px solid !important;
- border-color: var(--submenuColor) !important;
+ border-color: pvar(--submenuColor) !important;
border-width: 0 1px !important;
&:first-child {
}
&.ui-state-highlight {
- background-color: var(--submenuColor) !important;
+ background-color: pvar(--submenuColor) !important;
.pi {
@extend .glyphicon;
&.pi-sort-amount-up-alt {
@extend .glyphicon-triangle-top;
- color: var(--mainForegroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
}
&.pi-sort-amount-down {
@extend .glyphicon-triangle-bottom;
- color: var(--mainForegroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
}
}
}
p-paginator {
.ui-paginator-bottom {
- background-color: var(--mainBackgroundColor) !important;
+ background-color: pvar(--mainBackgroundColor) !important;
position: relative;
border: none;
border-top: 1px solid !important;
- border-color: var(--submenuColor) !important;
+ border-color: pvar(--submenuColor) !important;
height: 40px;
display: flex;
justify-content: center;
left: 0;
&.ui-state-focus {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
}
.ui-dropdown-label {
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
}
.ui-paginator-current {
position: absolute;
right: 0;
- color: var(--inputPlaceholderColor);
+ color: pvar(--inputPlaceholderColor);
}
.ui-paginator-first,
&.focus-within,
&:focus {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
}
&.ui-state-disabled:hover {
.ui-paginator-page {
&.focus-within,
&:focus {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest) !important;
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest) !important;
}
}
a {
- color: var(--mainForegroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
font-weight: $font-semibold !important;
margin: 0 5px !important;
outline: 0 !important;
&.ui-state-active {
&, &:hover, &:active, &:focus {
color: #fff !important;
- background-color: var(--mainColor) !important;
+ background-color: pvar(--mainColor) !important;
}
}
}
&:focus,
&.ui-state-focus {
- box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
}
}
}
}
.ui-multiselect-panel .ui-multiselect-items .ui-multiselect-item.ui-state-highlight {
- background-color: var(--mainColorLighter);
+ background-color: pvar(--mainColorLighter);
}
.ui-inputtext:enabled:focus:not(.ui-state-error) {
- border-color: var(--mainColorLighter) !important;
+ border-color: pvar(--mainColorLighter) !important;
box-shadow: none;
}
}
.ui-chkbox-box {
&.ui-state-active {
- border-color: var(--mainColor) !important;
- background-color: var(--mainColor) !important;
+ border-color: pvar(--mainColor) !important;
+ background-color: pvar(--mainColor) !important;
}
.ui-chkbox-icon {
height: 12px;
opacity: 0;
transform: rotate(45deg) scale(0);
- border-right: 2px solid var(--mainBackgroundColor);
- border-bottom: 2px solid var(--mainBackgroundColor);
+ border-right: 2px solid pvar(--mainBackgroundColor);
+ border-bottom: 2px solid pvar(--mainBackgroundColor);
}
&.pi-check:after {
height: 26px;
.ui-inputswitch-checked .ui-inputswitch-slider {
- background-color: var(--mainColor) !important;
+ background-color: pvar(--mainColor) !important;
}
&.small {
.ui-toast-message {
font-family: $main-fonts;
- background-color: var(--mainBackgroundColor) !important;
- color: var(--mainForegroundColor) !important;
+ background-color: pvar(--mainBackgroundColor) !important;
+ color: pvar(--mainForegroundColor) !important;
border-radius: 5px;
box-sizing: border-box;
border: 1px solid #EBEEF5 !important;