&:focus,
&:active {
text-decoration: none !important;
+ }
+
+ &:focus:not(.focus-visible) {
outline: none !important;
}
}
@mixin disable-outline {
&:focus:not(.focus-visible) {
- outline: none;
+ outline: none !important;
}
}
text-overflow: ellipsis;
}
-@mixin ellipsis-multiline($font-size: 16px, $number-of-lines: 2, $line-height: $font-size) {
- display: block;
- /* Fallback for non-webkit */
- display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
- -webkit-line-clamp: $number-of-lines;
- -webkit-box-orient: vertical;
- /* Fallback for non-webkit */
- font-size: $font-size;
- line-height: $line-height;
- overflow: hidden;
- text-overflow: ellipsis;
- max-height: $font-size * $number-of-lines;
-}
-
@mixin muted {
color: pvar(--greyForegroundColor) !important;
}
}
}
-@mixin peertube-input-text($width) {
- padding: 4px 15px;
+@mixin rounded-line-height-1-5 ($font-size) {
+ line-height: $font-size + math.round(math.div($font-size, 2));
+}
+
+@mixin peertube-input-text($width, $font-size: $form-input-font-size) {
+ @include rounded-line-height-1-5($font-size);
+
+ font-size: $font-size;
+
+ padding: 3px 15px;
display: inline-block;
width: $width;
max-width: $width;
background-color: pvar(--inputBackgroundColor);
border: 1px solid pvar(--inputBorderColor);
border-radius: 3px;
- font-size: $form-input-font-size;
- line-height: $form-input-line-height;
&::placeholder {
color: pvar(--inputPlaceholderColor);
}
@mixin peertube-button {
+ @include rounded-line-height-1-5($button-font-size);
+
padding: 4px 13px;
border: 0;
cursor: pointer;
font-size: $button-font-size;
- line-height: $button-font-size + math.round(math.div($button-font-size, 2));
my-global-icon + * {
@include margin-right(4px);
width: $width;
top: $top;
}
-
- span {
- vertical-align: middle;
- }
}
@mixin peertube-file {
}
select {
- padding: 4px 35px 4px 12px;
+ @include rounded-line-height-1-5($form-input-font-size);
+
+ font-size: $form-input-font-size;
+
+ padding: 3px 35px 3px 12px;
position: relative;
border: 1px solid pvar(--inputBorderColor);
background: transparent none;
appearance: none;
text-overflow: ellipsis;
color: pvar(--mainForegroundColor);
- font-size: $form-input-font-size;
- line-height: $form-input-line-height;
&:focus {
outline: none;
font-weight: $font-semibold;
color: pvar(--greyForegroundColor);
border: 0;
+
+ // No border, add +1 to vertical padding
+ padding: 4px 35px 4px 12px;
}
}
}