diff --git a/client/src/app/shared/components/sorting-list/sorting-list.component.html b/client/src/app/shared/components/sorting-list/sorting-list.component.html index 4a60edd7c..7da0f16fe 100644 --- a/client/src/app/shared/components/sorting-list/sorting-list.component.html +++ b/client/src/app/shared/components/sorting-list/sorting-list.component.html @@ -1,17 +1,17 @@ -
-
+
+
No data
-
-
+
+
drag_indicator
-
+
{{ i + 1 }}.  {{ item.getTitle() }}
-
+
diff --git a/client/src/app/shared/components/sorting-list/sorting-list.component.scss b/client/src/app/shared/components/sorting-list/sorting-list.component.scss index 395c9b734..c624cdecc 100644 --- a/client/src/app/shared/components/sorting-list/sorting-list.component.scss +++ b/client/src/app/shared/components/sorting-list/sorting-list.component.scss @@ -1,19 +1,11 @@ @import '~assets/styles/drag.scss'; -.box { - width: 100%; - border-bottom: solid 1px #ccc; - color: rgba(0, 0, 0, 0.87); - font-size: 14px; -} - -.box:last-child { - border: none; -} - .line { display: table; + width: 100%; + font-size: 14px; min-height: 50px; + margin-bottom: 5px; .section-one { display: table-cell; @@ -28,7 +20,12 @@ .section-two { display: table-cell; vertical-align: middle; - width: 80%; + width: 100%; + padding-left: 20px; + + span + span { + margin-left: 20px; + } } .section-three { diff --git a/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.html b/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.html index 884b54165..9f92f153b 100644 --- a/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.html +++ b/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.html @@ -11,85 +11,100 @@
-

{{ viewItem.getTitle() }}

+ + +

{{ viewItem.getTitle() }}

- Last speakers - -
- {{ number + 1 }}. {{ speaker }} +
+
{{ number + 1 }}.
+
{{ speaker }}
+
+ {{ durationString(speaker) }} ({{ 'Start time' | translate }}: {{ startTimeToString(speaker) }}) +
+
+ +
-
-    {{ durationString(speaker) }} ({{ 'Start time' | translate }}: - {{ startTimeToString(speaker) }}) -
- + + +
+
- play_arrow - {{ activeSpeaker }} + + mic + - + {{ activeSpeaker }} + + + + +
-
-
- - - - - - {{ hasSpokenCount(item) + 1 }}. contribution - - ({{ item.gender | translate }}) +
+ + + + + + {{ hasSpokenCount(item) + 1 }}. contribution - - - mic - Start - - - {{ item.marked ? 'star' : 'star_border' }} - - - close - - - - -
+ ({{ item.gender | translate }}) +
+ + + + + + + + + + + + +
+
@@ -110,11 +125,11 @@
- - diff --git a/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.scss b/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.scss index 1a3d61ec0..b19b08a29 100644 --- a/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.scss +++ b/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.scss @@ -1,72 +1,147 @@ +@import '~@angular/material/theming'; + +@mixin os-list-of-speakers-style($theme) { + $primary: map-get($theme, primary); + $accent: map-get($theme, accent); + $warn: map-get($theme, warn); + $contrast: map-get($primary, contrast); + $foreground: map-get($theme, foreground); + + .current-speaker { + background-color: mat-color($accent) !important; + + > span { + color: mat-color($accent, default-contrast); + } + } + + .finished-speaker-grid { + > .number .name .controls { + color: mat-color($foreground, text); + } + + > .time { + color: mat-color($foreground, secondary-text); + } + } +} + .title { margin-left: 25px; } -.speaker-card { - margin: 0 20px 0 20px; - padding: 0; +.finished-list { + box-shadow: none !important; + margin-bottom: 15px; - .finished-list { - margin-bottom: 15px; - .finished-suffix { - color: slategray; - font-size: 80%; - margin-right: 10px; - } + .mat-list-item { + height: auto; + margin-bottom: 10px; + } - .mat-list-item { - height: auto; - } + .finished-speaker-grid { + display: grid; + width: 100%; + grid-template-areas: 'number name time controls'; + grid-gap: 5px; + grid-template-columns: 30px 1fr min-content min-content; + } - button { - margin-left: 10px; + @media only screen and (max-width: 960px) { + .finished-speaker-grid { + grid-template-areas: + 'number name controls' + 'number time controls'; + grid-template-columns: 30px 1fr min-content; } } - .current-speaker { - padding: 10px 25px 15px 25px; - display: table; - .speaking-icon { - display: table-cell; - vertical-align: middle; - } - - .speaking-name { - display: table-cell; - vertical-align: middle; - font-weight: bold; - padding-left: 10px; - } - - button { - display: table-cell; - vertical-align: middle; - margin-left: 10px; - } + .number { + grid-area: number; + margin: 0; } - .waiting-list { - padding: 10px 25px 0 25px; - width: 75%; + .name { + grid-area: name; + margin: 0; } - form { - padding: 15px 25px 10px 25px; - width: auto; + .time { + grid-area: time; + margin: 0; + //allows pushing this grid area as small as possible and aligns the end to the same level + white-space: nowrap; + font-size: 80%; + } - .search-users { - display: grid; - .mat-form-field { - width: 100%; + .controls { + grid-area: controls; + margin: 0; + opacity: 0.7; + + .mat-icon-button { + height: 20px; + line-height: 1; + + .mat-icon { + line-height: 19px; } } } +} - .add-self-buttons { - padding: 20px 0 20px 25px; +.current-speaker { + display: table; + width: -webkit-fill-available; + height: 50px; + margin: 50px 25px 20px 25px; + box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.25); + + .prefix { + display: table-cell; + padding: 0 15px; + vertical-align: middle; + .mat-icon { + vertical-align: middle; + } } - .speaker-warning { - margin-right: 5px; + .name { + display: table-cell; + vertical-align: middle; + font-weight: bold; + padding-left: 10px; + width: 100%; + } + + .suffix { + display: table-cell; + vertical-align: middle; + white-space: nowrap; + padding-right: 10px; } } + +.waiting-list { + padding: 10px 25px 0 25px; +} + +form { + padding: 15px 25px 10px 25px; + width: auto; + + .search-users { + display: grid; + .mat-form-field { + width: 100%; + } + } +} + +.add-self-buttons { + padding: 15px 0 20px 25px; +} + +.speaker-warning { + margin-right: 5px; +} diff --git a/client/src/assets/styles/global-components-style.scss b/client/src/assets/styles/global-components-style.scss index ca569a513..e3e462967 100644 --- a/client/src/assets/styles/global-components-style.scss +++ b/client/src/assets/styles/global-components-style.scss @@ -81,7 +81,7 @@ } .backgroundColorLight { - background-color: mat-color($background, status-bar); + background-color: mat-color($background, hover); color: mat-color($foreground, text) !important; } } diff --git a/client/src/styles.scss b/client/src/styles.scss index a4c0f5d8a..e6ae602fb 100644 --- a/client/src/styles.scss +++ b/client/src/styles.scss @@ -7,10 +7,11 @@ @import './assets/styles/openslides-dark-theme.scss'; @import './assets/styles/openslides-green-theme.scss'; -/** Import the component-related stylesheets here */ +/** Import the component-related style sheets here */ @import './app/site/site.component.scss-theme.scss'; @import './assets/styles/global-components-style.scss'; @import './app/shared/components/projector-button/projector-button.component.scss'; +@import './app/site/agenda/components/list-of-speakers/list-of-speakers.component.scss'; /** fonts */ @import './assets/styles/fonts.scss'; @@ -21,6 +22,7 @@ @include os-site-theme($theme); @include os-components-style($theme); @include os-projector-button-style($theme); + @include os-list-of-speakers-style($theme); /** More components are added here */ } @@ -408,6 +410,9 @@ button.mat-menu-item.selected { .spacer-bottom-20 { margin-bottom: 20px !important; } +.spacer-bottom-40 { + margin-bottom: 40px !important; +} .spacer-left-10 { margin-left: 10px; }