}
}
-
+@media screen and (max-width: $mobile-view) {
+ .section {
+ .section-title {
+ flex-direction: column;
+ align-items: normal;
+ }
+ }
+}
padding: 5px;
margin-top: -2px;
}
+
+@media screen and (max-width: $mobile-view) {
+ .sub-menu {
+ .actor {
+ flex-direction: column;
+ align-items: center;
+
+ img,
+ .actor-info .actor-names .actor-display-name {
+ margin-right: 0;
+ }
+
+ .actor-info {
+ .actor-names {
+ flex-direction: column;
+ align-items: center;
+ }
+
+ my-user-moderation-dropdown {
+ margin-left: 0;
+ }
+
+ .actor-followers {
+ text-align: center;
+ }
+ }
+ }
+ }
+}
my-user-notifications {
font-size: 15px;
}
+
+@media screen and (max-width: $mobile-view) {
+ .header {
+ flex-direction: column;
+
+ & >:first-child {
+ margin-bottom: 15px;
+ }
+ }
+}
width: 500px;
max-width: 100%;
}
+
+@media screen and (max-width: $small-view) {
+ .progress {
+ width: 100%;
+ }
+}
}
}
+@media screen and (max-width: $small-view) {
+ .video-channels-header {
+ text-align: center;
+ }
+
+ .video-channel {
+ .video-channel-info {
+ padding-bottom: 10px;
+ text-align: center;
+
+ .video-channel-names {
+ flex-direction: column;
+ align-items: center !important;
+ margin: auto;
+ }
+ }
+
+ img {
+ margin-right: 0;
+ }
+ }
+}
+
input {
&[type=text] {
@include peertube-input-text(340px);
-
+
display: block;
-
+
&#name {
width: auto;
flex-grow: 1;
.breadcrumb {
@include breadcrumb;
}
+
+@media screen and (max-width: $small-view) {
+ input[type=text]#name {
+ width: auto !important;
+ }
+
+ label[for=name] + div, textarea {
+ width: 100%;
+ }
+}
}
.video-channel {
- .video-channel-names {
- flex-direction: column;
- align-items: center !important;
+ padding-bottom: 10px;
+
+ .video-channel-info {
+ padding-bottom: 10px;
+ text-align: center;
+
+ .video-channel-names {
+ flex-direction: column;
+ align-items: center !important;
+ margin: auto;
+ }
}
img {
display: flex;
justify-content: center;
+
+ /* fix ellipsis dots background color */
+ ::ng-deep .miniature-name::after {
+ background-color: var(--submenuColor) !important;
+ }
}
// Thanks Angular CDK <3 https://material.angular.io/cdk/drag-drop/examples
.videos.cdk-drop-list-dragging .video:not(.cdk-drag-placeholder) {
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}
+
+@media screen and (max-width: $small-view) {
+ .playlist-info {
+ margin-top: -$sub-menu-margin-bottom-small-view;
+ }
+}
}
}
}
+
+@media only screen and (min-width: $mobile-view) and (max-width: $small-view) {
+ .video-playlists-header {
+ input[type=text] {
+ width: 42% !important;
+ }
+ }
+}
+
+@media screen and (max-width: $mobile-view) {
+ .video-playlists-header {
+ flex-direction: column;
+
+ input[type=text] {
+ width: 100% !important;
+ margin-bottom: 12px;
+ }
+ }
+}
my-edit-button {
margin-right: 10px;
}
+
+@media screen and (max-width: $small-view) {
+ .videos-header {
+ flex-direction: column;
+ }
+
+ ::ng-deep {
+ .video-miniature {
+ align-items: center;
+
+ .video-bottom,
+ .video-bottom .video-miniature-information {
+ /* same width than a.video-thumbnail */
+ max-width: 223px !important;
+ }
+ }
+ }
+
+ my-delete-button,
+ my-edit-button {
+ margin-right: 0px;
+
+ ::ng-deep {
+ span, a {
+ margin-right: 0px;
+ }
+ }
+ }
+
+ my-delete-button,
+ my-edit-button,
+ my-button {
+ margin-top: 15px;
+ width: 100%;
+ text-align: center;
+
+ ::ng-deep {
+ .action-button {
+ /* same width than a.video-thumbnail */
+ width: 223px;
+ }
+ }
+ }
+}
height: min-content;
}
}
+
+@media screen and (max-width: $mobile-view) {
+ .sub-menu {
+ .actor {
+ flex-direction: column;
+
+ .actor-info .actor-names {
+ flex-direction: column;
+ align-items: normal;
+ }
+ }
+ }
+}
}
@media screen and (max-width: $small-view) {
- .video-channel-names {
- flex-direction: column !important;
+ .search-result {
+ .entry.video-channel,
+ .entry.video {
+ flex-direction: column;
+ height: auto;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+
+ img {
+ margin: 0;
+ }
+
+ img {
+ margin: 0;
+ }
- .video-channel-name {
- margin-left: 0 !important;
+ .video-channel-info .video-channel-names {
+ align-items: center;
+ flex-direction: column !important;
+
+ .video-channel-name {
+ margin-left: 0 !important;
+ }
+ }
+
+ my-subscribe-button {
+ margin-top: 5px;
+ }
}
}
}
}
.entry {
- flex-direction: column;
- height: auto;
- justify-content: center;
- align-items: center;
- text-align: center;
-
&.video {
.video-info-name,
.video-info-account {
}
}
}
-
- &.video-channel {
- .video-channel-info .video-channel-names {
- align-items: center;
- }
-
- my-subscribe-button {
- margin-top: 5px;
- }
- }
}
}
}
@include adapt-margin-content-width;
}
+@media screen and (max-width: $mobile-view) {
+ .videos-header {
+ flex-direction: column;
+ align-items: center;
+ height: auto;
+
+ .title-page {
+ margin-bottom: 10px;
+ margin-right: 0px;
+ }
+ }
+}
overflow-x: auto;
padding-left: 15px;
padding-right: 15px;
- margin-bottom: 10px;
+ margin-bottom: $sub-menu-margin-bottom-small-view;
}
- input[type=text], input[type=password] {
+ input[type=text],
+ input[type=password],
+ input[type=email],
+ textarea {
width: 100% !important;
}
}
line-height: $font-size;
overflow: hidden;
text-overflow: ellipsis;
+ /* Let space at right for dots */
+ position: relative;
+ margin-right: -1em;
+ padding-right: 1em;
+
+ /* Display dots if the max number of lines is exceeded */
+ &::before {
+ content: "...";
+ /* set position to right bottom corner of block */
+ position: absolute;
+ bottom: 0;
+ right: 0;
+ }
+
+ /* Hide dots if the max number of lines is not exceeded */
+ &:after {
+ content: '';
+ background-color: var(--mainBackgroundColor);
+ /* set position to right bottom corner of text */
+ position: absolute;
+ right: 0;
+ width: 1em;
+ height: 1em;
+ margin-top: 0.2em;
+ }
}
@mixin prefix($property, $parameters...) {
$input-placeholder-color: #898989;
$sub-menu-margin-bottom: 30px;
+$sub-menu-margin-bottom-small-view: 10px;
$activated-action-button-color: black;