Move to sass module

pull/4212/head
Chocobozzz 2021-05-27 18:25:00 +02:00
parent fa12eacc01
commit 8cbc40b2fe
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
170 changed files with 426 additions and 427 deletions

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.subtitle {
font-size: 18px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.about-instance-title {
display: flex;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.modal-body {
text-align: left;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.peertube-contributors {
.framasoft {

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.root {
max-width: 1200px;

View File

@ -1,6 +1,7 @@
@use '_variables';
@use '_mixins';
@use '_miniature';
@use 'sass:math';
@use '_variables' as *;
@use '_mixins' as *;
@use '_miniature' as *;
.margin-content {
@include grid-videos-miniature-margins;
@ -100,7 +101,7 @@ my-subscribe-button {
position: absolute;
right: 0;
background: linear-gradient(90deg, transparent 0, pvar(--channelBackgroundColor) 45px);
padding: ($video-thumbnail-medium-height / 2 - 10px) 15px 0 60px;
padding: (math.div($video-thumbnail-medium-height, 2) - 10px) 15px 0 60px;
z-index: z(miniature) + 1;
a {

View File

@ -1,7 +1,7 @@
@use '_variables';
@use '_mixins';
@use '_actor';
@use '_miniature';
@use '_variables' as *;
@use '_mixins' as *;
@use '_actor' as *;
@use '_miniature' as *;
.root {
--myGlobalTopPadding: 60px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
my-top-menu-dropdown {
flex-grow: 1;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
$form-base-input-width: 340px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
a {
@include disable-default-a-behaviour;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
a {
@include disable-default-a-behaviour;

View File

@ -1,4 +1,4 @@
@use '_mixins';
@use '_mixins' as *;
.form-sub-title {
@include margin-right(30px);

View File

@ -1,2 +1,2 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
a {
@include disable-default-a-behaviour;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.label {
display: inline-block;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.unblock-button {
@include peertube-button;

View File

@ -1,4 +1,4 @@
@use '_mixins';
@use '_mixins' as *;
my-global-icon {
width: 24px;

View File

@ -1,4 +1,4 @@
@use '_mixins';
@use '_mixins' as *;
my-feed {
@include margin-left(5px);

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.update-button[disabled=true] ::ng-deep .action-button {
cursor: default !important;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.search-bar {
display: flex;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
h2 {
margin-bottom: 20px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.plugin {
margin: 15px 0;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.toggle-plugin-type {
display: flex;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.root {
font-size: 15px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.select-job-state {
min-width: 120px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.logs {
font-family: monospace;

View File

@ -1,5 +1,5 @@
@import '_variables';
@import '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.form-sub-title {
@include margin-right(30px);

View File

@ -1,5 +1,6 @@
@use '_variables';
@use '_mixins';
@use 'sass:math';
@use '_variables' as *;
@use '_mixins' as *;
$form-base-input-width: 340px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
input:not([type=submit]):not([type=checkbox]) {
@include peertube-input-text(340px);

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.add-button {
@include create-button;

View File

@ -1,8 +1,8 @@
@use '_variables';
@use '_mixins';
@use './_bootstrap-variables';
@use '~bootstrap/scss/functions';
@use '~bootstrap/scss/variables';
@use '_variables' as *;
@use '_mixins' as *;
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
label {
display: block;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
label {
font-weight: $font-regular;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.header {
display: flex;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
label {
font-weight: $font-regular;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
label {
font-weight: $font-regular;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.delete-me {
button {

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.custom-row {
display: flex;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
label {
font-weight: $font-regular;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.account-title {
@include settings-big-title;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.row {
@include sub-menu-h1;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
label {
font-weight: $font-regular;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
h1 my-global-icon {
position: relative;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.no-history {
display: flex;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.row {
@include sub-menu-h1;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.peertube-select-container {
@include peertube-select-container(350px);

View File

@ -1,5 +1,6 @@
@use '_miniature';
@use '_mixins';
@use 'sass:math';
@use '_miniature' as *;
@use '_mixins' as *;
.chip {
@include chip;
@ -19,7 +20,7 @@
@include margin-right(0.5rem);
height: $image-height;
width: #{(16/9) * $image-height};
width: #{math.div(16, 9) * $image-height};
border-radius: 2px;
border: 0;
background: transparent;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
input[type=text] {
@include peertube-input-text(300px);

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
pre {
font-size: 11px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
label {
font-weight: $font-regular;

View File

@ -1,6 +1,6 @@
@use '_variables';
@use '_mixins';
@use '_miniature';
@use '_variables' as *;
@use '_mixins' as *;
@use '_miniature' as *;
.root {
display: grid;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
h1 {
display: flex;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
p-autocomplete {
display: block;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
input[type=text] {
@include peertube-input-text(300px);

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.root {
@include margin-left(auto);

View File

@ -1,2 +1,2 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
input:not([type=submit]) {
@include peertube-input-text(340px);

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
form {
margin-top: 40px;

View File

@ -1,9 +1,10 @@
@use '_variables';
@use '_mixins';
@use 'sass:math';
@use '_variables' as *;
@use '_mixins' as *;
@mixin build-channel-img-size ($video-img-width) {
$image-size: min(130px, $video-img-width);
$margin-size: ($video-img-width - $image-size) / 2; // So we have the same width than the video miniature
$margin-size: math.div(($video-img-width - $image-size), 2); // So we have the same width than the video miniature
@include actor-avatar-size($image-size);

View File

@ -1,5 +1,6 @@
@use '_variables';
@use '_mixins';
@use 'sass:math';
@use '_variables' as *;
@use '_mixins' as *;
$grey-color: #9CA3AB;
$index-block-height: 32px;
@ -69,7 +70,7 @@ header {
.connector {
flex: auto;
margin: $index-block-height/2 10px 0 10px;
margin: math.div($index-block-height, 2) 10px 0 10px;
height: 2px;
background-color: $grey-color;
}

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.alert {
font-size: 15px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
input:not([type=submit]) {
@include peertube-input-text(340px);

View File

@ -1,6 +1,6 @@
@use '_variables';
@use '_mixins';
@use '_miniature';
@use '_variables' as *;
@use '_mixins' as *;
@use '_miniature' as *;
.playlists {
display: flex;

View File

@ -1,7 +1,7 @@
@use '_variables';
@use '_mixins';
@use '_actor';
@use '_miniature';
@use '_variables' as *;
@use '_mixins' as *;
@use '_actor' as *;
@use '_miniature' as *;
.root {
--myGlobalTopPadding: 60px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
label {
font-weight: $font-regular;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
label,
my-dynamic-form-field ::ng-deep label {

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.first-step-block {
.torrent-or-magnet {

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
$width-size: 190px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.first-step-block {
.form-group-channel {

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
$border-width: 3px;
$border-type: solid;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
$markdown-icon-height: 18px;
$markdown-icon-width: 30px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.root-comment {
font-size: 15px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
#highlighted-comment {
margin-bottom: 25px;

View File

@ -1,4 +1,5 @@
@use 'node_modules/video.js/dist/video-js';
$assets-path: '../../assets/';
@use '../../../sass/player/index';

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.title-page-container {
display: flex;

View File

@ -1,4 +1,4 @@
@use '_mixins';
@use '_mixins' as *;
@mixin main {
@include actor-avatar-size(35px);

View File

@ -1,7 +1,7 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
@use '_bootstrap-variables';
@use '_miniature';
@use '_miniature' as *;
.playlist {
min-width: 200px;

View File

@ -1,9 +1,10 @@
@use '_variables';
@use '_mixins';
@use 'sass:math';
@use '_variables' as *;
@use '_mixins' as *;
@use '_bootstrap-variables';
@use '_miniature';
@use '_miniature' as *;
$player-factor: 16/9;
$player-factor: math.div(16, 9);
$video-info-margin-left: 44px;
@function getPlayerHeight ($width) {

View File

@ -1,6 +1,6 @@
@use '_variables';
@use '_mixins';
@use '_miniature';
@use '_variables' as *;
@use '_mixins' as *;
@use '_miniature' as *;
.section-title {
// make the element span a full grid row within .videos grid

View File

@ -1,4 +1,4 @@
@import '_mixins';
@use '_mixins' as *;
.btn-group label {
border: 1px solid transparent;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.peertube-container {
padding-bottom: 20px;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.cfp-hotkeys-container {
display: flex !important;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
my-search-typeahead {
@include margin-right(15px);

View File

@ -1,5 +1,5 @@
@use '_mixins';
@use '_variables';
@use '_mixins' as *;
@use '_variables' as *;
#search-video {
@include peertube-input-text($search-input-width);
@ -122,7 +122,7 @@ li.suggestion {
border-end-start-radius: 0;
border-end-end-radius: 0;
@include media-breakpoint-up(lg) {
@media screen and (min-width: 1000px) {
width: 500px;
}
}

View File

@ -1,4 +1,5 @@
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
a {
@include disable-default-a-behaviour;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.help-to-translate {
@include peertube-button-link;

View File

@ -1,5 +1,6 @@
@use '_variables';
@use '_mixins';
@use 'sass:math';
@use '_variables' as *;
@use '_mixins' as *;
$menu-link-icon-size: 22px;
$menu-link-icon-margin-right: 18px;
@ -220,7 +221,7 @@ my-actor-avatar {
a {
$icon-size: 13px;
$additional-margin: ($menu-link-icon-size - $icon-size) / 2;
$additional-margin: math.div($menu-link-icon-size - $icon-size, 2);
font-size: 14px;
width: 100%;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.content {
scrollbar-color: auto;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.modal-body {
font-size: 15px;

View File

@ -1,5 +1,5 @@
@use '_mixins';
@use '_variables';
@use '_mixins' as *;
@use '_variables' as *;
.modal-body {
font-size: 15px;

View File

@ -1,5 +1,5 @@
@use '_mixins';
@use '_variables';
@use '_mixins' as *;
@use '_variables' as *;
.modal-body {
font-size: 15px;

View File

@ -1,5 +1,5 @@
@use '_mixins';
@use '_variables';
@use '_mixins' as *;
@use '_variables' as *;
.modal-body {
font-size: 15px;

View File

@ -1,6 +1,6 @@
@use '_variables';
@use '_mixins';
@use '_miniature';
@use '_variables' as *;
@use '_mixins' as *;
@use '_miniature' as *;
.comment-html {
background-color: #ececec;

View File

@ -1,5 +1,5 @@
@import '_mixins';
@import '_variables';
@use '_mixins' as *;
@use '_variables' as *;
.comment-flagged-account,
.account-flagged-handle {

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
form {
margin: 20px 20px 0 0;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
textarea {
@include peertube-textarea(100%, 100px);

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.actor {
display: flex;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.banner-placeholder {
@include block-ratio('> div, > img', $banner-inverted-ratio);

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.actor ::ng-deep .popover-image-info .popover-body {
padding: 0;

View File

@ -1,5 +1,5 @@
@use '_variables';
@use '_mixins';
@use '_variables' as *;
@use '_mixins' as *;
.avatar {
--avatarSize: 100%;

View File

@ -1,3 +1,3 @@
@import '_variables';
@import '_mixins';
@use '_variables' as *;
@use '_mixins' as *;

Some files were not shown because too many files have changed in this diff Show More