Verified Commit 27bc9586 authored by Chocobozzz's avatar Chocobozzz
Browse files

Bidi support

parent 8beea2d3
Pipeline #422042 failed with stages
in 14 minutes and 12 seconds
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
@import '_mixins'; @import '_mixins';
my-video-miniature { my-video-miniature {
margin-right: 15px; @include margin-right(15px);
display: inline-block; display: inline-block;
min-width: $video-thumbnail-width; min-width: $video-thumbnail-width;
max-width: $video-thumbnail-width; max-width: $video-thumbnail-width;
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
input { input {
@include peertube-input-text(auto); @include peertube-input-text(auto);
@include padding-left(15px !important);
@include padding-right(15px !important);
// set again properties of peertube-input-text that are overriden by .input-group // set again properties of peertube-input-text that are overriden by .input-group
font-size: 15px !important; font-size: 15px !important;
padding-left: 15px !important;
padding-right: 15px !important;
} }
.eye-button { .eye-button {
......
...@@ -24,12 +24,13 @@ $input-border-radius: 3px; ...@@ -24,12 +24,13 @@ $input-border-radius: 3px;
} }
.nav-preview { .nav-preview {
@include padding-left(10px);
@include padding-right(10px);
display: block; display: block;
text-align: right; text-align: end;
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
border-top: 1px dashed $input-border-color; border-top: 1px dashed $input-border-color;
border-left: 1px solid $input-border-color; border-left: 1px solid $input-border-color;
border-right: 1px solid $input-border-color; border-right: 1px solid $input-border-color;
...@@ -77,7 +78,7 @@ $input-border-radius: 3px; ...@@ -77,7 +78,7 @@ $input-border-radius: 3px;
border-bottom: 2px solid pvar(--mainColor); border-bottom: 2px solid pvar(--mainColor);
:first-child { :first-child {
margin-left: auto; @include margin-left(auto);
} }
::ng-deep { ::ng-deep {
...@@ -91,7 +92,7 @@ $input-border-radius: 3px; ...@@ -91,7 +92,7 @@ $input-border-radius: 3px;
} }
.maximize-button { .maximize-button {
margin-left: 5px; @include margin-left(5px);
} }
} }
} }
...@@ -120,10 +121,11 @@ $input-border-radius: 3px; ...@@ -120,10 +121,11 @@ $input-border-radius: 3px;
.nav-preview { .nav-preview {
@include nav-preview-medium(); @include nav-preview-medium();
@include padding-right(0);
@include padding-left(0);
padding-top: #{$nav-preview-vertical-padding / 2}; padding-top: #{$nav-preview-vertical-padding / 2};
padding-bottom: #{$nav-preview-vertical-padding / 2}; padding-bottom: #{$nav-preview-vertical-padding / 2};
padding-left: 0;
padding-right: 0;
position: absolute; position: absolute;
background-color: pvar(--mainBackgroundColor); background-color: pvar(--mainBackgroundColor);
width: 100% !important; width: 100% !important;
...@@ -132,7 +134,7 @@ $input-border-radius: 3px; ...@@ -132,7 +134,7 @@ $input-border-radius: 3px;
border-right: 0; border-right: 0;
:last-child { :last-child {
margin-right: pvar(--horizontalMarginContent); @include margin-right(pvar(--horizontalMarginContent));
} }
} }
...@@ -181,11 +183,11 @@ $input-border-radius: 3px; ...@@ -181,11 +183,11 @@ $input-border-radius: 3px;
.nav-preview { .nav-preview {
::ng-deep .nav-link { ::ng-deep .nav-link {
@include ellipsis(); @include ellipsis();
@include margin-right(10px !important);
display: block !important; display: block !important;
max-width: 45% !important; max-width: 45% !important;
padding: 5px 0 !important; padding: 5px 0 !important;
margin-right: 10px !important;
text-align: center; text-align: center;
&:not(.active) { &:not(.active) {
......
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
} }
.recommended { .recommended {
margin-left: .5rem; @include margin-left(.5rem);
align-self: baseline; align-self: baseline;
display: inline-block; display: inline-block;
padding: 4px 6px; padding: 4px 6px;
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
} }
.filename { .filename {
@include margin-left(5px);
font-weight: $font-semibold; font-weight: $font-semibold;
margin-left: 5px;
} }
} }
...@@ -43,10 +43,10 @@ ng-select ::ng-deep { ...@@ -43,10 +43,10 @@ ng-select ::ng-deep {
my-select-options + input { my-select-options + input {
@include peertube-input-text($form-base-input-width); @include peertube-input-text($form-base-input-width);
margin-left: 5px; @include margin-left(5px);
display: block; display: block;
} }
.input-suffix { .input-suffix {
margin-left: 5px; @include margin-left(5px);
} }
...@@ -12,8 +12,9 @@ table { ...@@ -12,8 +12,9 @@ table {
} }
&.sub-label { &.sub-label {
@include padding-left(30px);
font-weight: $font-regular; font-weight: $font-regular;
padding-left: 30px;
} }
.more-info { .more-info {
......
...@@ -24,7 +24,7 @@ my-small-loader ::ng-deep .root { ...@@ -24,7 +24,7 @@ my-small-loader ::ng-deep .root {
a[class$=-button], a[class$=-button],
span[class$=-button] { span[class$=-button] {
> span { > span {
margin-left: 5px; @include margin-left(5px);
} }
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
.popover-body { .popover-body {
font-family: $main-fonts; font-family: $main-fonts;
text-align: left; text-align: start;
padding: 10px; padding: 10px;
font-size: 13px; font-size: 13px;
background-color: pvar(--mainBackgroundColor); background-color: pvar(--mainBackgroundColor);
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
} }
ul { ul {
padding-left: 20px; @include padding-left(20px);
margin-bottom: 0; margin-bottom: 0;
} }
} }
......
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
} }
my-global-icon { my-global-icon {
@include margin-left(10px);
height: 28px; height: 28px;
width: 28px; width: 28px;
margin-left: 10px;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
......
...@@ -22,19 +22,20 @@ ...@@ -22,19 +22,20 @@
my-global-icon { my-global-icon {
@include apply-svg-color(#333); @include apply-svg-color(#333);
@include margin-right(11px);
@include margin-left(3px);
width: 24px; width: 24px;
margin-right: 11px;
margin-left: 3px;
} }
.avatar { .avatar {
@include margin-right(10px);
width: 30px; width: 30px;
height: 30px; height: 30px;
min-width: 30px; min-width: 30px;
min-height: 30px; min-height: 30px;
border-radius: 5px; border-radius: 5px;
margin-right: 10px;
} }
.message { .message {
...@@ -46,11 +47,12 @@ ...@@ -46,11 +47,12 @@
} }
.from-date { .from-date {
@include padding-left(5px);
@include margin-left(auto);
font-size: 0.85em; font-size: 0.85em;
color: pvar(--greyForegroundColor); color: pvar(--greyForegroundColor);
padding-left: 5px;
min-width: 70px; min-width: 70px;
text-align: right; text-align: end;
margin-left: auto;
} }
} }
...@@ -8,7 +8,7 @@ label { ...@@ -8,7 +8,7 @@ label {
.user-quota { .user-quota {
label { label {
margin-right: 5px; @include margin-right(5px);
} }
&, &,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
font-weight: $font-semibold; font-weight: $font-semibold;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
text-align: right; text-align: end;
} }
.moderation-expanded-text { .moderation-expanded-text {
...@@ -79,10 +79,10 @@ my-action-dropdown.show { ...@@ -79,10 +79,10 @@ my-action-dropdown.show {
$image-height: 45px; $image-height: 45px;
@include miniature-thumbnail; @include miniature-thumbnail;
@include margin-right(0.5rem);
height: $image-height; height: $image-height;
width: #{(16/9) * $image-height}; width: #{(16/9) * $image-height};
margin-right: 0.5rem;
border-radius: 2px; border-radius: 2px;
border: 0; border: 0;
background: transparent; background: transparent;
...@@ -121,9 +121,10 @@ my-action-dropdown.show { ...@@ -121,9 +121,10 @@ my-action-dropdown.show {
line-height: 1rem; line-height: 1rem;
div .glyphicon { div .glyphicon {
@include margin-left(0.1rem);
font-size: 80%; font-size: 80%;
color: #808080; color: #808080;
margin-left: 0.1rem;
} }
div + div { div + div {
......
...@@ -16,7 +16,7 @@ textarea { ...@@ -16,7 +16,7 @@ textarea {
align-items: center; align-items: center;
my-timestamp-input { my-timestamp-input {
margin-left: 10px; @include margin-left(10px);
} }
} }
......
...@@ -50,7 +50,7 @@ my-input-toggle-hidden { ...@@ -50,7 +50,7 @@ my-input-toggle-hidden {
cursor: pointer; cursor: pointer;
.glyphicon { .glyphicon {
margin-right: 5px; @include margin-right(5px);
} }
} }
...@@ -66,7 +66,7 @@ my-input-toggle-hidden { ...@@ -66,7 +66,7 @@ my-input-toggle-hidden {
align-items: center; align-items: center;
.peertube-select-container { .peertube-select-container {
margin-left: 10px; @include margin-left(10px);
} }
} }
...@@ -77,7 +77,7 @@ my-input-toggle-hidden { ...@@ -77,7 +77,7 @@ my-input-toggle-hidden {
align-items: center; align-items: center;
my-timestamp-input { my-timestamp-input {
margin-left: 10px; @include margin-left(10px);
} }
} }
} }
...@@ -38,15 +38,15 @@ ...@@ -38,15 +38,15 @@
// Unlogged // Unlogged
> .dropdown > .dropdown-toggle span { > .dropdown > .dropdown-toggle span {
padding-right: 3px; @include padding-right(3px);
} }
// Logged // Logged
> .btn { > .btn {
padding-right: 4px; @include padding-right(4px);
+ .dropdown > button { + .dropdown > button {
padding-left: 2px; @include padding-left(2px);
&::after { &::after {
position: relative; position: relative;
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
} }
span.followers-count { span.followers-count {
padding-left: 5px; @include padding-left(5px);
} }
} }
&.unsubscribe-button { &.unsubscribe-button {
...@@ -108,6 +108,6 @@ ...@@ -108,6 +108,6 @@
span:not(:first-child) { span:not(:first-child) {
font-size: 60%; font-size: 60%;
text-align: left; text-align: start;
} }
} }
...@@ -21,7 +21,8 @@ $icon-size: 16px; ...@@ -21,7 +21,8 @@ $icon-size: 16px;
} }
.moderation-block { .moderation-block {
margin-left: .4rem; @include margin-left(.4rem);
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
...@@ -54,8 +55,8 @@ $icon-size: 16px; ...@@ -54,8 +55,8 @@ $icon-size: 16px;
} }
.display-as-row.videos { .display-as-row.videos {
margin-left: pvar(--horizontalMarginContent); @include margin-left(pvar(--horizontalMarginContent));
margin-right: pvar(--horizontalMarginContent); @include margin-right(pvar(--horizontalMarginContent));
.video-wrapper { .video-wrapper {
margin-bottom: 15px; margin-bottom: 15px;
...@@ -70,8 +71,9 @@ $icon-size: 16px; ...@@ -70,8 +71,9 @@ $icon-size: 16px;
margin-bottom: 10px; margin-bottom: 10px;
.title-page { .title-page {
@include margin-right(0);
margin-bottom: 10px; margin-bottom: 10px;
margin-right: 0;
} }
} }
} }
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
} }
.glyphicon { .glyphicon {
margin-right: 5px; @include margin-right(5px);
} }
} }
...@@ -46,9 +46,9 @@ ...@@ -46,9 +46,9 @@
.peertube-radio-container { .peertube-radio-container {
@include peertube-radio-container; @include peertube-radio-container;
@include margin-right(30px);
display: inline-block; display: inline-block;
margin-right: 30px;
} }
} }
...@@ -66,8 +66,9 @@ ...@@ -66,8 +66,9 @@
margin-bottom: 12px; margin-bottom: 12px;
.metadata-attribute-label { .metadata-attribute-label {
@include padding-right(5px);
min-width: 142px; min-width: 142px;