OpenSlides/client/src/styles.scss

625 lines
11 KiB
SCSS
Raw Normal View History

@import '~@angular/material/theming';
@include mat-core();
/** Import brand theme and (new) component themes */
2018-11-05 17:40:32 +01:00
@import './assets/styles/openslides-theme.scss';
@import './app/site/site.component.scss-theme';
2019-01-22 11:59:16 +01:00
/** fonts */
@import './assets/styles/fonts.scss';
@mixin openslides-components-theme($theme) {
@include os-site-theme($theme);
/** More components are added here */
}
@include angular-material-theme($openslides-theme);
@include openslides-components-theme($openslides-theme);
@import '~angular-tree-component/dist/angular-tree-component.css';
* {
2019-01-22 11:59:16 +01:00
font-family: OSFont, Fira Sans, Roboto, Arial, Helvetica, sans-serif;
}
2019-01-09 08:31:13 +01:00
.mat-toolbar h2 {
2019-01-22 11:59:16 +01:00
font-family: OSFont, Fira Sans, Roboto, Arial, Helvetica, sans-serif !important;
2019-01-09 08:31:13 +01:00
}
mat-icon {
font-family: MaterialIcons-Regular;
}
2018-06-25 17:03:52 +02:00
2019-01-09 08:31:13 +01:00
body {
// background: #e8eaed;
margin: 0 auto;
padding: 0;
line-height: 1.5;
font-size: 14px;
color: #222;
}
h1,
h2,
2019-01-17 10:53:16 +01:00
h3,
.title-font,
.slidetitle h1,
.slidetitle h2 {
2019-01-22 11:59:16 +01:00
font-family: OSFont Condensed, Fira Sans Condensed, Roboto-condensed, Arial, Helvetica, sans-serif;
2019-01-09 08:31:13 +01:00
}
h1 {
padding-bottom: 10px;
line-height: 1.2;
color: $os-primary;
margin: 0;
font-weight: normal;
font-size: 36px;
}
h3 {
font-weight: 500;
margin-bottom: 0;
}
h3.accent {
color: $os-accent;
}
2018-11-09 09:24:38 +01:00
h4 {
font-weight: 400;
font-size: 12px;
color: rgba(0, 0, 0, 0.54);
margin-bottom: 5px;
.mat-icon-button mat-icon {
font-size: 16px;
}
2018-11-09 09:24:38 +01:00
}
.small {
font-size: 90%;
}
2019-01-09 08:31:13 +01:00
img {
border: none;
}
a {
text-decoration: none;
2019-01-11 18:55:09 +01:00
color: #039be5; /*TODO: move to theme*/
2019-01-09 08:31:13 +01:00
&:hover {
text-decoration: underline;
}
}
2019-01-11 18:55:09 +01:00
strong,
b {
2019-01-09 08:31:13 +01:00
font-weight: 500;
}
.generic-mini-button {
bottom: -28px;
z-index: 100;
}
2018-09-18 18:27:14 +02:00
.save-button {
// needs to be important or will be overwritten locally
background-color: rgb(77, 243, 86) !important;
}
.text-success {
color: rgb(77, 243, 86);
}
// transform text to uppercase. Use on span, p, h, (...)
.upper {
text-transform: uppercase;
}
2018-09-18 18:27:14 +02:00
.red-warning-text {
color: red;
mat-icon {
color: red !important;
}
2018-09-18 18:27:14 +02:00
}
2018-12-04 19:31:24 +01:00
.accent-text {
color: mat-color($openslides-accent);
}
2019-01-11 18:55:09 +01:00
.green-text {
// TODO better name/theming
color: #5a5;
2018-12-04 19:31:24 +01:00
}
2018-09-18 18:27:14 +02:00
.icon-text-distance {
margin-left: 5px;
}
.no-content {
text-align: center;
color: gray;
}
2019-01-09 08:31:13 +01:00
mat-card {
2019-01-11 18:55:09 +01:00
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37) !important;
2019-01-09 08:31:13 +01:00
}
.os-card {
2019-01-09 08:31:13 +01:00
max-width: 770px;
margin-top: 20px !important;
margin-left: auto !important;
margin-right: auto !important;
font-size: 16px;
.mat-select-arrow-wrapper {
visibility: hidden;
}
}
.os-form-card {
max-width: 770px;
margin-top: 20px !important;
margin-left: auto !important;
margin-right: auto !important;
font-size: 16px;
.mat-form-field {
width: 100%;
padding: 10px 0;
}
}
.os-form-card-mobile {
.mat-form-field, .mat-select {
width: 100%;
}
}
2019-01-09 08:31:13 +01:00
// Shared table definitions
%os-table {
width: 100%;
/** size of the mat row */
mat-row {
height: 60px;
}
mat-row.lg {
height: 90px;
}
mat-row:hover {
cursor: pointer;
background-color: rgba(0, 0, 0, 0.025);
}
mat-row.selected {
cursor: pointer;
background-color: rgba(0, 0, 0, 0.055);
}
}
2018-10-22 16:44:18 +02:00
@keyframes fadeIn {
2019-01-11 18:55:09 +01:00
0% {
width: 0%;
margin-left: 0;
}
100% {
width: 100%;
margin-left: -100%;
}
2018-10-22 16:44:18 +02:00
}
2018-09-18 18:27:14 +02:00
//custom table header for search button, filtering and more. Used in ListViews
.custom-table-header {
width: 100%;
height: 60px;
line-height: 60px;
text-align: right;
background: white;
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
2018-10-22 16:44:18 +02:00
display: flex;
justify-content: flex-end;
button {
border-radius: 0%;
}
input {
position: relative;
max-width: 400px;
z-index: 2;
padding-right: 5px;
margin-right: 0px;
}
mat-icon {
vertical-align: text-bottom;
}
2018-09-18 18:27:14 +02:00
}
.os-listview-table {
2018-12-06 12:28:05 +01:00
@extend %os-table;
/* multi select column */
.mat-column-selector {
flex: 0 0 60px;
}
/* projector button column */
.mat-column-projector {
flex: 0 0 40px;
overflow: visible;
}
/** hide mat header row */
.mat-header-row {
display: none;
}
2018-12-06 12:28:05 +01:00
}
2018-12-06 12:28:05 +01:00
.os-headed-listview-table {
@extend %os-table;
}
2019-01-09 08:31:13 +01:00
/* TODO: find a better way to get more vertical space in (empty/small) tables for maximize filter dialog */
mat-paginator {
min-height: 800px;
}
/* hide scrollbars caused by hidden filter dialog outside of the viewport */
.mat-drawer-content {
overflow-x: hidden !important;
}
.card-plus-distance {
margin-top: 40px;
2018-06-25 17:03:52 +02:00
}
/**title of an app page*/
.app-name {
margin-left: 20px;
}
/**content of an app page*/
.app-content {
margin: 20px;
margin-top: 50px;
}
/**use to push content to the right side*/
.spacer {
flex: 1 1 auto;
}
/** helper classes for animation */
.on-transition-fade {
z-index: 100;
}
mat-expansion-panel {
border-radius: 0 !important;
}
2018-11-09 09:24:38 +01:00
/* This destroys the projector button in list views using extension panels. */
/*mat-panel-title mat-icon {
2018-11-09 09:24:38 +01:00
padding-right: 30px;
}*/
2018-11-16 16:09:15 +01:00
2018-11-05 17:40:32 +01:00
.hidden-cell {
flex: 0;
width: 0;
display: none;
}
2018-11-16 16:09:15 +01:00
// ngx-file-drop requires the custom style in the global css file
.file-drop-style {
margin: auto;
height: 100px;
border: 2px dotted #0782d0;
}
.os-tree {
.node-content-wrapper {
background-color: aliceblue;
border: 1px black;
width: 100%;
padding: 10px 20px;
}
tree-loading-component {
display: none;
}
}
.mat-chip,
.mat-basic-chip {
font-size: 12px;
min-height: 22px !important;
border-radius: 5px !important;
padding: 4px 8px !important;
margin: 8px 8px 8px 0;
}
.mat-chip-list.user .mat-chip {
border-radius: 16px !important;
padding: 15px !important;
border: solid 1px lightgray;
background: #fff;
}
2018-12-06 12:28:05 +01:00
// to display quantities. Use in span or div
.os-amount-chip {
border-radius: 50%;
width: 20px;
height: 20px;
line-height: 20px;
padding: 3px;
background: lightgray;
color: #000;
text-align: center;
}
.mat-chip:focus,
.mat-basic-chip:focus {
outline: none;
}
button.mat-menu-item.selected {
font-weight: bold !important;
}
.mat-menu-item .mat-icon {
margin-right: 8px !important;
}
2019-01-09 08:31:13 +01:00
.meta-text-block .mat-icon-button {
margin-top: -12px !important;
}
.meta-text-block .mat-icon-button mat-icon {
font-size: 18px;
}
/** helper classes for margin/padding */
.spacer-top-10 {
margin-top: 10px !important;
2019-01-09 08:31:13 +01:00
}
.spacer-top-20 {
margin-top: 20px !important;
}
.spacer-bottom-10 {
margin-bottom: 10px !important;
2019-01-09 08:31:13 +01:00
}
.spacer-bottom-20 {
margin-bottom: 20px !important;
2019-01-09 08:31:13 +01:00
}
.button24 {
background-color: white;
color: $os-primary !important;
width: 24px !important;
height: 24px !important;
}
.icon24 {
font-size: 16px;
margin-top: -8px;
}
.mat-mini-fab.large {
width: 24px;
height: 24px;
line-height: 24px;
.mat-icon {
2019-01-11 18:55:09 +01:00
font-size: 24px;
width: 24px;
height: 24px;
line-height: 24px;
2019-01-09 08:31:13 +01:00
}
}
.title {
2019-01-09 08:31:13 +01:00
padding-top: 20px;
padding-bottom: 20px;
}
.mat-radio-button {
padding-right: 20px;
}
.content-container {
margin: 0 65px;
}
/** media queries */
/* medium */
@media only screen and (min-width: 500px) and (max-width: 960px) {
.content-container {
margin: 0 25px;
}
.content-container h1 {
2019-01-21 11:44:08 +01:00
font-size: 30px;
}
}
/* small */
@media only screen and (max-width: 500px) {
.content-container {
margin: 0 15px;
}
.content-container h1 {
2019-01-21 11:44:08 +01:00
font-size: 30px;
}
}
2019-01-09 08:31:13 +01:00
/** more helper classes **/
.center {
text-align: center;
}
/** Colors **/
.lightblue {
background-color: rgb(33, 150, 243) !important;
color: white !important;
}
.darkblue {
background-color: rgb(63, 81, 181) !important;
color: white !important;
}
.green,
.success {
background-color: rgb(76, 175, 80) !important;
color: white !important;
}
.red,
.error {
background-color: rgb(255, 82, 82) !important;
color: white !important;
}
.yellow,
.warning {
background-color: rgb(255, 193, 7) !important;
color: white !important;
}
.bluegrey {
background-color: rgb(96, 125, 139) !important;
color: white !important;
}
.grey {
background-color: #e0e0e0 !important;
color: rgba(0, 0, 0, 0.87) !important;
}
2018-10-22 16:44:18 +02:00
.projected {
background-color: lightblue;
}
2019-01-11 18:55:09 +01:00
/* TODO: move to site.component.scss-theme.scss (does not work currently) */
/* make the .user-menu expansion panel look like the nav-toolbar above */
.user-menu {
min-height: 48px;
2019-01-09 08:31:13 +01:00
2019-01-11 18:55:09 +01:00
.mat-expansion-panel-header {
padding: 0 16px !important;
}
2019-01-09 08:31:13 +01:00
2019-01-11 18:55:09 +01:00
.mat-expansion-panel-body {
padding: 0 !important;
}
}
2019-01-09 08:31:13 +01:00
2019-01-11 18:55:09 +01:00
.mat-drawer-inner-container {
scrollbar-width: none; /* hide scrollbars in Firefox */
-ms-overflow-style: -ms-autohiding-scrollbar; /* hide scrollbars in Edge until the scrollable area is hovered */
}
2019-01-09 08:31:13 +01:00
2019-01-11 18:55:09 +01:00
.mat-drawer-inner-container::-webkit-scrollbar {
display: none !important; /* hide scrollbars in webkit browsers */
}
2019-01-09 08:31:13 +01:00
2019-01-11 18:55:09 +01:00
.import-table {
.table-container {
width: 100%;
overflow-x: scroll;
margin-top: 5px;
2019-01-09 08:31:13 +01:00
}
2019-01-11 18:55:09 +01:00
table {
width: 100%;
overflow: scroll;
2019-01-09 08:31:13 +01:00
}
2019-01-11 18:55:09 +01:00
.mat-header-cell {
min-width: 100px;
flex: 2;
padding-right: 8px;
}
.mat-cell {
min-width: 100px;
flex: 2;
padding-top: 2px;
padding-right: 8px;
2019-01-09 08:31:13 +01:00
}
2019-01-11 18:55:09 +01:00
.selection {
min-width: 80px;
}
.import-done {
background-color: #cfc;
}
.import-error {
background-color: #fcc;
}
.code {
padding-left: 1em;
font-style: italic;
}
div.wrapper {
display: flex;
vertical-align: bottom;
padding: 10px;
}
div.summary {
display: flex;
}
.hidden-input {
display: none;
}
.newBadge {
margin-left: -3px;
}
.first-column {
flex: 1;
min-width: 0px;
}
2019-01-11 18:55:09 +01:00
.filter-imports {
max-width: 50%;
}
}
2019-01-25 16:48:49 +01:00
.table-view-list-title {
font-weight: 500;
font-size: 16px;
}
/*** Projector slides ***/
#slide {
h3 {
color: #222;
margin-bottom: 10px
}
.slidetitle {
border-bottom: 5px solid #d3d3d3;
margin-bottom: 40px;
h1 {
font-size: 2.25em;
line-height: 1.1em;
margin-bottom: 0;
padding-bottom: 0;
}
h2 {
color: #9a9898;
margin-top: 10px;
margin-bottom: 0px;
font-size: 28px;
font-weight: normal;
display: block;
}
}
ul, ol {
margin: 0 0 10px 0;
}
hr {
margin: 10px 0;
}
}