OpenSlides/openslides/core/static/css/app.css
2016-08-25 17:35:57 +02:00

1133 lines
19 KiB
CSS

/*
* OpenSlides template styles of web interface
*/
* { /* set margin/padding for all (block) elements to null */
margin: 0;
padding: 0;
}
body {
font-family: "Open Sans",Helvetica,Arial,sans-serif;
font-weight: 400;
font-size: 14px;
line-height: 1.5;
color: #222;
text-align: center;
background: #e8eaed;
}
div {
text-align: left;
}
blockquote {
font-size: inherit;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Roboto Condensed",Helvetica,Arial,sans-serif;
font-weight: 400;
line-height: 1.1;
}
h1 {
font-size: 36px;
color: #317796;
padding-bottom: 8px;
}
h2 {
font-size: 22px;
color: #9a9898;
padding-bottom: 14px;
}
h3 {
font-size: 22px;
color: #222;
padding-bottom: 14px;
}
h4 {
font-size: 18px;
color: #222;
}
.heading a {
color: #444;
}
.heading a:hover {
color: #2b6883;
text-decoration: none;
}
p {
padding-bottom: 14px;
}
a {
text-decoration: none;
color: #2b6883;
}
a:hover {
text-decoration: underline;
}
img {
border: none;
}
#wrapper {
float: left;
width: 100%;
margin: 0 auto 0 auto;
}
/** Header **/
#header {
float: left;
width: 100%;
height: 40px;
background: #002c42;
color: #999;
}
#header div.unconnected {
border: 1px solid red;
position: fixed;
width: 100%;
z-index: 1000;
}
#header a.headerlink {
text-decoration: none;
}
#header a.headerlink {
color: #999;
}
#header a.headerlink:hover, #header a.headerlink:active, #header a.headerlink.active {
color: #e8eaed;
}
#header .title {
float: left;
margin: 2px 0 0 -5px;
font-family: "Roboto Condensed",Helvetica,Arial,sans-serif;
font-weight: 400;
color: #fff;
}
#header .user {
float: right;
margin: 5px 0 0 0;
height: 100%;
}
#header .user .inline {
display: inline;
}
#nav {
float: left;
width: 100%;
height: auto;
background: #317796;
color: #fff;
overflow-y: hidden;
}
#header .containerOS, #nav .containerOS, #content .containerOS {
max-width: 1300px;
height: 100%;
margin: 0 auto 0 auto;
padding: 0 30px;
}
#nav .navbar {
width: 100%;
float: left;
border: none;
margin: 0;
}
#nav .navbar-toggle {
padding: 5px 0;
}
#nav .navbar-toggle i {
font-size: 28px;
color: #fff;
opacity: 0.5;
}
#nav .navbar-toggle:hover i {
opacity: 1;
}
#nav .navbar-collapse {
padding: 0;
}
#nav .navbar ul {
list-style: none;
margin: 0;
}
#nav .navbar ul li {
float: left;
text-align: center;
}
#nav .navbar ul li.active {
background: url('/static/img/nav_dark-bg.png');
}
#nav .navbar ul li.active a {
background: url('/static/img/nav_active.png') no-repeat bottom;
}
#nav .navbar li a {
display: block;
color: #fff;
padding: 22px 15px;
}
#nav .navbar li a:hover {
background: url('/static/img/nav_dark-bg.png');
text-decoration: none;
}
#nav .navbar li i {
font-size: 28px;
display: block;
margin-bottom: 6px;
margin-right: 0;
opacity: 0.5;
}
#nav .navbar li.active i, #nav .navbar li a:hover i {
opacity: 1;
}
#nav .searchbar {
float: right;
margin-top: 35px;
display: inline-table;
}
#nav .searchbar input {
width: 150px;
}
#nav .searchbar .btn {
background: #e8eaed;
color: #555;
}
/** Content **/
#content {
float: left;
width: 100%;
margin-top: 20px;
}
#content .containerOS {
height: 30px;
}
/** Main column **/
#content .col1 {
float: left;
}
#content .col1.min { /*with maximized sidebar*/
width: calc(100% - 330px);
}
#content .col1.max { /*with minimized sidebar*/
width: calc(100% - 70px);
}
.col1 .header {
background: #fff;
border: 1px solid #d3d3d3;
}
.col1 .title {
padding: 0 20px;
width: auto;
background: #fff;
}
.col1 .header .submenu {
float: right;
}
.col1 .meta .title {
width: 100%;
cursor: pointer;
height: 30px;
color: #fff;
background: #317796;
padding: 5px 20px 0 20px;
}
.col1 .meta .title .name {
float: left;
font-size: 14px;
}
.col1 .meta .title .icon {
float: right;
}
.col1 .meta .detail {
padding: 0 20px 10px 20px;
width: 100%;
min-height: 30px;
background: #d3d3d3;
color: #444;
}
.col1 .details {
padding: 20px;
width: auto;
margin-top: 20px;
background: #fff;
border: 1px solid #d3d3d3;
}
.col1 .details .line-number-setter {
margin-top: 0;
margin-bottom: 55px;
margin-left: 15px;
}
.col1 .details .line-number-setter .btn.disabled {
cursor: default;
opacity: 1;
background-color: #eee;
}
.col1 .details .inline-editing-activator {
margin-right: 13px;
}
.col1 ul, .col1 ol {
margin-left: 20px;
}
/* Toolbar to save motion in inline editing mode */
.motion-save-toolbar {
position: fixed;
bottom: 0;
left: 50%;
height: 75px;
width: 300px;
background: rgba(242, 222, 222, 0.9);
color: black;
text-align: center;
padding: 5px;
z-index: 10;
display: none;
border: 1px solid #d3d3d3;
margin-left: -150px;
border-bottom: none;
-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}
.motion-save-toolbar.visible {
display: block;
}
.motion-save-toolbar .changed-hint {
display: block;
line-height: 16px;
text-align: center;
margin-bottom: 10px;
font-weight: bold;
}
.motion-save-toolbar label {
font-weight: normal;
line-height: 16px;
text-align: left;
padding-left: 16px;
margin-top: 5px;
margin-left: 15px;
}
.motion-save-toolbar label input {
margin-left: -16px;
}
/*** Line numbers ***/
.motion-text.line-numbers-outside {
padding-left: 35px;
position: relative;
}
.motion-text.line-numbers-outside .os-line-number {
display: inline-block;
font-size: 0;
line-height: 0;
width: 0;
height: 0;
}
.motion-text.line-numbers-outside .os-line-number:after {
content: attr(data-line-number);
position: absolute;
left: 0;
vertical-align: top;
margin-top: -5px;
color: gray;
font-family: Courier, serif;
font-size: 13px;
}
.motion-text.line-numbers-inline .os-line-break {
display: none;
}
.motion-text.line-numbers-inline .os-line-number {
display: inline-block;
}
.motion-text.line-numbers-inline .os-line-number:after {
display: inline-block;
content: attr(data-line-number);
vertical-align: top;
font-size: 11px;
color: gray;
font-family: Courier, serif;
margin-top: -3px;
margin-left: 0;
margin-right: 0;
}
.motion-text.line-numbers-none .os-line-break {
display: none;
}
.motion-text.line-numbers-none .os-line-number {
display: none;
}
.os-line-number {
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
.os-line-number:after {
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
/** Projector sidebar column **/
#content .col2 {
float: right;
position: relative;
z-index: 3;
}
#content .col2.max {
width: 330px;
}
#content .col2.min {
width: 70px;
}
#content .col2 h4 {
font-size: 22px;
line-height: 24px;
font-family: 'Roboto Condensed Light';
font-weight: 300;
color: #444;
}
#content .col1 .meta .heading, #content .col1 .meta h3 {
font-size: 22px;
line-height: 24px;
font-weight: 300;
color: #444;
padding-bottom: 0;
margin-top: 20px;
margin-bottom: 5px;
}
#content .col1 .meta .heading .drop-down-name, #content .col1 .meta h3 {
font-family: 'Roboto Condensed Light';
}
#content .col2 a:hover h4 {
text-decoration: none;
}
.col2 .projector_min {
background: url('/static/img/nav_projector_sidebar_min.png') no-repeat left 17px;
width: 50px;
padding-left: 8px;
float: right;
}
.col2 .projector_min .icon {
float: left;
color: #fff;
font-size: 24px;
width: 50px;
text-align: center;
padding: 7px 0;
background: #317796;
}
.col2 .projector_min .icon a i {
opacity: 0.5;
}
.col2 .projector_min .icon a:hover i {
opacity: 1;
}
.col2 .projector_min .icon a {
color: #fff;
display: block;
}
.col2 .projector_full {
margin-left: 30px;
width: auto;
}
.col2 .projector_full .title {
width: 100%;
color: #fff;
height: 50px;
background: #317796;
cursor: pointer;
}
.col2 .projector_full .title i {
margin-right: 10px;
}
.col2 .projector_full .title .name {
float: left;
padding: 8px 0 0 20px;
font-size: 22px;
font-weight: 400;
}
.col2 .projector_full .title .icon {
float: right;
width: 50px;
text-align: center;
padding-top: 7px;
font-size: 24px;
}
.col2 .projector_full .title a, .col2 .projector_full .title a:hover {
color: #fff;
text-decoration: none;
display: block;
}
.meta .title:hover, .col2 .projector_full .title:hover {
color: #d3d3d3;
}
.col2 .projector_full .details {
clear: both;
width: 100%;
background: #d3d3d3;
}
.col2 .projector_full .details .section {
padding: 1px 20px;
width: auto;
border-bottom: 1px solid #c2c2c2;
}
.col2 .projector_full .details .section div.in.collapse {
padding-bottom: 15px;
}
#content .col2 .section a:hover {
text-decoration: none;
opacity: 0.5;
}
#content .toggle-icon {
font-size: 20px;
float: right;
margin-top: 10px;
}
/* countdown and message controls */
.col2 .countdown.panel, .col2 .message.panel {
margin-bottom: 7px;
}
.col2 .countdown .panel-heading {
padding: 3px 15px;
}
.col2 .countdown .panel-body {
padding: 5px 15px;
}
.col2 .message .panel-heading {
padding: 3px 15px;
}
.col2 .message .panel-body {
padding: 10px 15px;
}
.col2 .message .projectorbtn {
float: left;
width: auto;
margin: 5px 10px 5px 0px;
}
.col2 .message .innermessage {
float: left;
width: 180px;
max-width: 170px;
overflow: hidden;
}
.col2 .message .panel-input {
width: 228px;
float: left;
margin-top: 10px;
}
.col2 .countdown_timer {
font-size: 2.2em;
font-weight: bold;
}
.col2 .countdown .editicon, .col2 .message .editicon {
padding-right: 10px;
}
.col2 .countdown_timer.warning {
color: #ed940d;
}
.col2 .countdown_timer.negative {
color: #CC0000;
}
.col2 .notNull {
color: red;
font-weight: bold;
}
/* iframe for live view */
.col2 #iframe {
width: 1024px;
height: 768px;
-moz-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
-o-transform-origin: 0 0;
transform-origin: 0 0 0;
-moz-transform: scale(0.25);
-webkit-transform: scale(0.25);
-o-transform: scale(0.25);
transform: scale(0.25);
/* IE8+ - must be on one line, unfortunately */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.25, M12=0, M21=0, M22=0.25, SizingMethod='auto expand')";
}
.col2 #iframewrapper {
width: 256px;
height: 192px;
position: relative;
overflow: hidden;
border: 1px solid #D5D5D5;
margin-bottom: 10px;
}
.col2 #iframeoverlay {
width: 256px;
height: 192px;
position: absolute;
top: 0px;
left: 0px;
display: block;
z-index: 1;
}
/** Footer **/
#footer {
float: left;
height: 50px;
padding-top: 15px;
font-size: 90%;
}
/** General helper classes **/
.btn-primary {
background-color: #317796;
}
.slimDropDown {
padding-left: 4px !important;
padding-right: 4px !important;
}
.spacer, .spacer-top {
margin-top: 7px;
}
.spacer-top-lg {
margin-top: 25px;
}
.spacer-bottom {
margin-bottom: 7px;
}
.spacer-right {
margin-right: 5px;
}
.lead-div {
margin-bottom: 20px;
}
.lead-div .lead {
margin-bottom: 0;
}
.italic {
font-style: italic;
}
.hoverActions {
font-size: 85%;
}
.hiddenDiv {
visibility: hidden;
}
.vcenter {
vertical-align: middle;
}
.white-space-pre-line {
white-space: pre-line;
}
.slimlist {
padding-left: 20px;
}
.slimlabel.label {
padding: 0px 10px;
}
.indentation, .indentation20 {
margin-left: 20px;
}
.indentation-lg {
margin-left: 35px !important;
}
.halfWidth {
width: 50%;
}
.listOfSpeakers h3 {
padding-bottom: 0;
}
.smallhr {
margin-top: 5px;
margin-bottom: 5px;
border-color: #cccccc;
}
.nobr {
white-space: nowrap;
}
.optional { /* show optional column */
display: auto;
}
.login-logo {
width: 250px;
}
.loginForm .input-group-addon i {
width: 15px;
}
.modal-header {
padding: 5px;
}
/* user details */
.user_details fieldset {
margin-bottom: 10px;
}
.user_details legend {
margin-bottom: 5px;
}
.user_details label {
font-weight: bold;
margin: 10px 0 0 0;
display: block;
}
.user_details label:after {
content: ":";
}
/* group list */
#groups-table {
table-layout: fixed;
text-align: center;
}
#groups-table > thead > tr > th {
vertical-align: top;
text-align: center;
min-width: 40px;
}
#groups-table .perm-head {
width: 300px;
}
#groups-table > thead > tr > th > div {
text-align: center;
}
#groups-table > tbody > tr:hover {
background-color: #f5f5f5 !important;
}
#groups-table > tbody > tr:first-child {
background-color: #f9f9f9;
}
#groups-table > tbody > tr > td:first-child {
text-align: left;
}
#groups-table .optional-show { /* hide optional-show column */
display: none;
}
/* List of speakers view */
.fullscreendiv {
position: absolute;
font-size:120%;
top:0;
bottom:0;
right:0;
left:0;
padding: 50px;
background: #fff;
overflow: hidden;
width: 100vw;
height: 100vh;
z-index: 99;
}
.fullscreendiv-title {
border-bottom: 5px solid #d3d3d3;
margin-bottom: 40px;
}
.lastSpeakers {
color: #9a9898;
margin-left: 27px;
}
.currentSpeaker {
font-weight: bold;
margin-left: 0px;
}
.currentSpeaker i {
padding-right: 5px;
}
.nextSpeakers {
margin-left: 8px;
}
.nextSpeakers li {
line-height: 150%;
}
/* search results */
.searchresults li {
margin-bottom: 12px;
}
.searchresults li .subtitle {
color: #999999;
}
/* ngDialog: override ngdialog-theme-default */
.ngdialog.ngdialog-theme-default {
padding-top: 40px;
}
.ngdialog.ngdialog-theme-default.wide-form .ngdialog-content {
width: 650px;
}
.ngdialog h2 {
margin-top: 5px;
}
/* angular-chosen: override default width of select fields in quickmode */
.chosen-container {
width: 100% !important;
}
/* angular-ui-tree style */
.angular-ui-tree-handle {
background: none repeat scroll 0 0 #f8faff;
border: 1px solid #dae2ea;
color: #7c9eb2;
padding: 10px;
}
.angular-ui-tree-handle:hover {
background: none repeat scroll 0 0 #f4f6f7;
border-color: #dce2e8;
color: #438eb9;
}
.angular-ui-tree-placeholder {
background: none repeat scroll 0 0 #f0f9ff;
border: 2px dashed #bed2db;
box-sizing: border-box;
}
/* ngAnimate classes */
.animate-item.ng-enter {
-webkit-animation: fade-in 0.5s linear;
animation: fade-in 0.5s linear;
}
.animate-item.ng-leave {
-webkit-animation: fade-out 0.25s linear;
animation: fade-out 0.25s linear;
}
@keyframes fade-out {
0% { opacity: 1; background: none; }
100% { opacity: 0; background: none; }
}
@keyframes fade-in {
0% { opacity: 0; background: none; }
100% { opacity: 1; background: none; }
}
/* override bootstraps's progress bar for poll results */
.pollresults .progress {
height: 12px;
margin-bottom: 0;
}
/* override booststrap's label class to fix linebreak and add spacing */
.label {
display: inline-block;
padding: .3em .6em;
margin-right: .2em;
}
/* for angular-csv-import form */
.import {
margin-left: 15px;
}
.import .label {
color: #333 !important;
font-size: 100%;
font-weight: normal;
width: 100px;
text-align: left;
display: inline-block;
}
.import .label::after {
content: ': ';
}
/* voting results */
.result_label {
margin-top: 5px;
}
.pollresults table {
margin-bottom: 0;
}
.pollresults table td{
border: none !important;
padding: 5px 2px !important;
vertical-align: middle !important;
}
.pollresults table .icon {
color: #636363;
}
.pollresults table tr.total td {
border-top: 1px solid #444 !important;
}
/* Chatbox */
#chatbox {
position: fixed;
top: 40px;
right: 0;
width: 40%;
border-color: #dddddd;
border-width: 1px;
box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.2);
height: 200px;
padding: 0 10px 10px 10px;
z-index: 5;
}
#chatbox-text {
overflow-y: scroll;
height: 190px;
color: #222;
}
/* tables */
.minimum {
width: 1px;
}
.minimumTable {
width: auto;
}
.deleteColumn {
text-align: center;
background-color: #ff9999 !important;
}
th.sortable:hover, tr.pointer:hover, .pointer {
cursor: pointer;
}
/* background colors for table rows */
tr.hiddenrow td {
background-color: #F5DCDC;
}
tr.activeline td, li.activeline, .projected {
background-color: #bed4de;
}
tr.selected td {
background-color: #ff9999;
}
/** Colors **/
.grey { /*h2 grey*/
color: #9a9898;
}
/*////////////////////////////////////////
=MEDIA QUERIES (RESPONSIVE DESIGN)
////////////////////////////////////////*/
/* display for 900 to 1200px resolutions */
@media only screen and (max-width: 1200px) {
body { font-size: 12px;}
h1 { font-size: 30px; padding-bottom: 6px; }
h2 { font-size: 22px; padding-bottom: 10px; }
h3 { font-size: 18px; padding-bottom: 10px; }
}
/* display for resolutions smaller that 900px */
@media only screen and (max-width: 900px) {
#nav .navbar li a { padding: 24px 5px; }
#groups-table .perm-head {
width: 200px;
}
/* hide text in groups-table earlier */
#groups-table .optional { display: none; }
/* show replacement elements, if any */
#groups-table .optional-show { display: block !important; }
}
/* display for resolutions smaller that 760px */
@media only screen and (max-width: 760px) {
h1 { font-size: 22px; padding-bottom: 4px; }
h2 { font-size: 16px; padding-bottom: 4px; }
h3 { font-size: 14px; padding-bottom: 4px; }
.user i { font-size: 16px; padding: 3px; }
#nav .navbar { box-shadow: none; }
#nav .navbar ul li a { padding: 10px 15px; }
#nav .searchbar { margin: 15px 0; }
#chatbox { width: 100%; top: 40px; }
/* hide marked element / column */
.optional, .hide-sm { display: none; }
/* show replacement elements, if any */
.optional-show { display: block !important; }
}
/* display for resolutions smaller that 560px */
@media only screen and (max-width: 560px) {
#content .containerOS {
padding: 0;
}
#content .col2.max {
width: 100%;
position: absolute;
}
.col2 .projector_full {
margin-left: 0px;
}
#groups-table .perm-head {
width: 150px;
}
}