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 @@
@import '_mixins';
my-video-miniature {
margin-right: 15px;
@include margin-right(15px);
display: inline-block;
min-width: $video-thumbnail-width;
max-width: $video-thumbnail-width;
......
......@@ -3,11 +3,11 @@
input {
@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
font-size: 15px !important;
padding-left: 15px !important;
padding-right: 15px !important;
}
.eye-button {
......
......@@ -24,12 +24,13 @@ $input-border-radius: 3px;
}
.nav-preview {
@include padding-left(10px);
@include padding-right(10px);
display: block;
text-align: right;
text-align: end;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
border-top: 1px dashed $input-border-color;
border-left: 1px solid $input-border-color;
border-right: 1px solid $input-border-color;
......@@ -77,7 +78,7 @@ $input-border-radius: 3px;
border-bottom: 2px solid pvar(--mainColor);
:first-child {
margin-left: auto;
@include margin-left(auto);
}
::ng-deep {
......@@ -91,7 +92,7 @@ $input-border-radius: 3px;
}
.maximize-button {
margin-left: 5px;
@include margin-left(5px);
}
}
}
......@@ -120,10 +121,11 @@ $input-border-radius: 3px;
.nav-preview {
@include nav-preview-medium();
@include padding-right(0);
@include padding-left(0);
padding-top: #{$nav-preview-vertical-padding / 2};
padding-bottom: #{$nav-preview-vertical-padding / 2};
padding-left: 0;
padding-right: 0;
position: absolute;
background-color: pvar(--mainBackgroundColor);
width: 100% !important;
......@@ -132,7 +134,7 @@ $input-border-radius: 3px;
border-right: 0;
:last-child {
margin-right: pvar(--horizontalMarginContent);
@include margin-right(pvar(--horizontalMarginContent));
}
}
......@@ -181,11 +183,11 @@ $input-border-radius: 3px;
.nav-preview {
::ng-deep .nav-link {
@include ellipsis();
@include margin-right(10px !important);
display: block !important;
max-width: 45% !important;
padding: 5px 0 !important;
margin-right: 10px !important;
text-align: center;
&:not(.active) {
......
......@@ -36,7 +36,8 @@
}
.recommended {
margin-left: .5rem;
@include margin-left(.5rem);
align-self: baseline;
display: inline-block;
padding: 4px 6px;
......
......@@ -16,7 +16,8 @@
}
.filename {
@include margin-left(5px);
font-weight: $font-semibold;
margin-left: 5px;
}
}
......@@ -43,10 +43,10 @@ ng-select ::ng-deep {
my-select-options + input {
@include peertube-input-text($form-base-input-width);
margin-left: 5px;
@include margin-left(5px);
display: block;
}
.input-suffix {
margin-left: 5px;
@include margin-left(5px);
}
......@@ -12,8 +12,9 @@ table {
}
&.sub-label {
@include padding-left(30px);
font-weight: $font-regular;
padding-left: 30px;
}
.more-info {
......
......@@ -24,7 +24,7 @@ my-small-loader ::ng-deep .root {
a[class$=-button],
span[class$=-button] {
> span {
margin-left: 5px;
@include margin-left(5px);
}
}
......
......@@ -24,7 +24,7 @@
.popover-body {
font-family: $main-fonts;
text-align: left;
text-align: start;
padding: 10px;
font-size: 13px;
background-color: pvar(--mainBackgroundColor);
......@@ -36,7 +36,7 @@
}
ul {
padding-left: 20px;
@include padding-left(20px);
margin-bottom: 0;
}
}
......
......@@ -6,9 +6,10 @@
}
my-global-icon {
@include margin-left(10px);
height: 28px;
width: 28px;
margin-left: 10px;
cursor: pointer;
&:hover {
......
......@@ -22,19 +22,20 @@
my-global-icon {
@include apply-svg-color(#333);
@include margin-right(11px);
@include margin-left(3px);
width: 24px;
margin-right: 11px;
margin-left: 3px;
}
.avatar {
@include margin-right(10px);
width: 30px;
height: 30px;
min-width: 30px;
min-height: 30px;
border-radius: 5px;
margin-right: 10px;
}
.message {
......@@ -46,11 +47,12 @@
}
.from-date {
@include padding-left(5px);
@include margin-left(auto);
font-size: 0.85em;
color: pvar(--greyForegroundColor);
padding-left: 5px;
min-width: 70px;
text-align: right;
margin-left: auto;
text-align: end;
}
}
......@@ -8,7 +8,7 @@ label {
.user-quota {
label {
margin-right: 5px;
@include margin-right(5px);
}
&,
......
......@@ -9,7 +9,7 @@
font-weight: $font-semibold;
display: inline-block;
vertical-align: top;
text-align: right;
text-align: end;
}
.moderation-expanded-text {
......@@ -79,10 +79,10 @@ my-action-dropdown.show {
$image-height: 45px;
@include miniature-thumbnail;
@include margin-right(0.5rem);
height: $image-height;
width: #{(16/9) * $image-height};
margin-right: 0.5rem;
border-radius: 2px;
border: 0;
background: transparent;
......@@ -121,9 +121,10 @@ my-action-dropdown.show {
line-height: 1rem;
div .glyphicon {
@include margin-left(0.1rem);
font-size: 80%;
color: #808080;
margin-left: 0.1rem;
}
div + div {
......
......@@ -16,7 +16,7 @@ textarea {
align-items: center;
my-timestamp-input {
margin-left: 10px;
@include margin-left(10px);
}
}
......
......@@ -50,7 +50,7 @@ my-input-toggle-hidden {
cursor: pointer;
.glyphicon {
margin-right: 5px;
@include margin-right(5px);
}
}
......@@ -66,7 +66,7 @@ my-input-toggle-hidden {
align-items: center;
.peertube-select-container {
margin-left: 10px;
@include margin-left(10px);
}
}
......@@ -77,7 +77,7 @@ my-input-toggle-hidden {
align-items: center;
my-timestamp-input {
margin-left: 10px;
@include margin-left(10px);
}
}
}
......@@ -38,15 +38,15 @@
// Unlogged
> .dropdown > .dropdown-toggle span {
padding-right: 3px;
@include padding-right(3px);
}
// Logged
> .btn {
padding-right: 4px;
@include padding-right(4px);
+ .dropdown > button {
padding-left: 2px;
@include padding-left(2px);
&::after {
position: relative;
......@@ -62,7 +62,7 @@
}
span.followers-count {
padding-left: 5px;
@include padding-left(5px);
}
}
&.unsubscribe-button {
......@@ -108,6 +108,6 @@
span:not(:first-child) {
font-size: 60%;
text-align: left;
text-align: start;
}
}
......@@ -21,7 +21,8 @@ $icon-size: 16px;
}
.moderation-block {
margin-left: .4rem;
@include margin-left(.4rem);
display: flex;
justify-content: flex-end;
align-items: center;
......@@ -54,8 +55,8 @@ $icon-size: 16px;
}
.display-as-row.videos {
margin-left: pvar(--horizontalMarginContent);
margin-right: pvar(--horizontalMarginContent);
@include margin-left(pvar(--horizontalMarginContent));
@include margin-right(pvar(--horizontalMarginContent));
.video-wrapper {
margin-bottom: 15px;
......@@ -70,8 +71,9 @@ $icon-size: 16px;
margin-bottom: 10px;
.title-page {
@include margin-right(0);
margin-bottom: 10px;
margin-right: 0;
}
}
}
......@@ -19,7 +19,7 @@
}
.glyphicon {
margin-right: 5px;
@include margin-right(5px);
}
}
......@@ -46,9 +46,9 @@
.peertube-radio-container {
@include peertube-radio-container;
@include margin-right(30px);
display: inline-block;
margin-right: 30px;
}
}
......@@ -66,8 +66,9 @@
margin-bottom: 12px;
.metadata-attribute-label {
@include padding-right(5px);
min-width: 142px;
padding-right: 5px;
display: inline-block;
color: pvar(--greyForegroundColor);
font-weight: $font-bold;
......@@ -75,6 +76,7 @@
a.metadata-attribute-value {
@include disable-default-a-behaviour;
color: pvar(--mainForegroundColor);
&:hover {
......
......@@ -13,7 +13,7 @@ $more-button-width: 40px;
}
my-actor-avatar {
margin: 10px 10px 0 0;
@include margin(10px, 10px, 0, 0);
}
.video-miniature-created-at-views {
......@@ -155,10 +155,11 @@ my-actor-avatar {
}
my-video-thumbnail {
@include margin-right(10px);
min-width: var(--rowThumbnailWidth);
max-width: var(--rowThumbnailWidth);
height: var(--rowThumbnailHeight);
margin-right: 10px;
}
.video-miniature-name {
......
......@@ -11,8 +11,9 @@
position: fixed;
.action-button {
@include margin-left(55px);
display: block;
margin-left: 55px;
}
}
......@@ -29,10 +30,11 @@
}
.checkbox-container {
@include margin-right(20px);
@include margin-left(12px);
display: flex;
align-items: center;
margin-right: 20px;
margin-left: 12px;
}
my-video-miniature {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment