diff options
Diffstat (limited to 'client/src/sass/include/_mixins.scss')
-rw-r--r-- | client/src/sass/include/_mixins.scss | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 136eddd3a..4766e4490 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -11,11 +11,6 @@ | |||
11 | &:focus:not(.focus-visible) { | 11 | &:focus:not(.focus-visible) { |
12 | outline: none; | 12 | outline: none; |
13 | } | 13 | } |
14 | |||
15 | &::-moz-focus-inner { | ||
16 | border: 0; | ||
17 | padding: 0 | ||
18 | } | ||
19 | } | 14 | } |
20 | 15 | ||
21 | 16 | ||
@@ -77,11 +72,17 @@ | |||
77 | } | 72 | } |
78 | } | 73 | } |
79 | 74 | ||
75 | @mixin button-focus-visible-shadow($color) { | ||
76 | &.focus-visible { | ||
77 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 4px $color; | ||
78 | } | ||
79 | } | ||
80 | |||
80 | @mixin peertube-input-text($width) { | 81 | @mixin peertube-input-text($width) { |
81 | display: inline-block; | 82 | display: inline-block; |
82 | height: $button-height; | 83 | height: $button-height; |
83 | width: $width; | 84 | width: $width; |
84 | background: var(--inputColor); | 85 | background: var(--inputBackgroundColor); |
85 | border: 1px solid #C6C6C6; | 86 | border: 1px solid #C6C6C6; |
86 | border-radius: 3px; | 87 | border-radius: 3px; |
87 | padding-left: 15px; | 88 | padding-left: 15px; |
@@ -118,6 +119,8 @@ | |||
118 | } | 119 | } |
119 | 120 | ||
120 | @mixin orange-button { | 121 | @mixin orange-button { |
122 | @include button-focus-visible-shadow(var(--mainHoverColor)); | ||
123 | |||
121 | &, &:active, &:focus { | 124 | &, &:active, &:focus { |
122 | color: #fff; | 125 | color: #fff; |
123 | background-color: var(--mainColor); | 126 | background-color: var(--mainColor); |
@@ -169,7 +172,6 @@ | |||
169 | text-align: center; | 172 | text-align: center; |
170 | padding: 0 17px 0 13px; | 173 | padding: 0 17px 0 13px; |
171 | cursor: pointer; | 174 | cursor: pointer; |
172 | outline: 0; | ||
173 | } | 175 | } |
174 | 176 | ||
175 | @mixin peertube-button-link { | 177 | @mixin peertube-button-link { |
@@ -254,7 +256,7 @@ | |||
254 | width: $width; | 256 | width: $width; |
255 | border-radius: 3px; | 257 | border-radius: 3px; |
256 | overflow: hidden; | 258 | overflow: hidden; |
257 | background: var(--inputColor); | 259 | background: var(--inputBackgroundColor); |
258 | position: relative; | 260 | position: relative; |
259 | font-size: 15px; | 261 | font-size: 15px; |
260 | 262 | ||
@@ -443,7 +445,6 @@ | |||
443 | @mixin actor-owner { | 445 | @mixin actor-owner { |
444 | @include disable-default-a-behaviour; | 446 | @include disable-default-a-behaviour; |
445 | 447 | ||
446 | display: inline-table; | ||
447 | font-size: 13px; | 448 | font-size: 13px; |
448 | margin-top: 4px; | 449 | margin-top: 4px; |
449 | color: var(--mainForegroundColor); | 450 | color: var(--mainForegroundColor); |
@@ -486,14 +487,15 @@ | |||
486 | .actor-names { | 487 | .actor-names { |
487 | display: flex; | 488 | display: flex; |
488 | align-items: center; | 489 | align-items: center; |
490 | flex-wrap: wrap; | ||
489 | 491 | ||
490 | .actor-display-name { | 492 | .actor-display-name { |
491 | font-size: 23px; | 493 | font-size: 23px; |
492 | font-weight: $font-bold; | 494 | font-weight: $font-bold; |
495 | margin-right: 7px; | ||
493 | } | 496 | } |
494 | 497 | ||
495 | .actor-name { | 498 | .actor-name { |
496 | margin-left: 7px; | ||
497 | position: relative; | 499 | position: relative; |
498 | top: 3px; | 500 | top: 3px; |
499 | font-size: 14px; | 501 | font-size: 14px; |
@@ -501,6 +503,10 @@ | |||
501 | } | 503 | } |
502 | } | 504 | } |
503 | 505 | ||
506 | .actor-lower { | ||
507 | grid-area: lower; | ||
508 | } | ||
509 | |||
504 | .actor-followers { | 510 | .actor-followers { |
505 | font-size: 15px; | 511 | font-size: 15px; |
506 | } | 512 | } |
@@ -520,6 +526,11 @@ | |||
520 | margin-bottom: 0; | 526 | margin-bottom: 0; |
521 | text-transform: uppercase; | 527 | text-transform: uppercase; |
522 | font-weight: 600; | 528 | font-weight: 600; |
529 | font-size: 110%; | ||
530 | |||
531 | @media screen and (max-width: $mobile-view) { | ||
532 | font-size: 130%; | ||
533 | } | ||
523 | } | 534 | } |
524 | } | 535 | } |
525 | } | 536 | } |