OpenSlides/client/src/app/site/motions/components/motion-detail/motion-detail.component.scss

287 lines
5.4 KiB
SCSS
Raw Normal View History

span {
margin: 0;
}
.extra-controls-slot {
div {
padding: 0px;
button {
.mat-button-wrapper {
display: inherit;
}
font-size: 100%;
}
span {
font-size: 80%;
}
}
}
.motion-title {
padding: 40px;
padding-left: 25px;
line-height: 180%;
font-size: 120%;
color: #317796; // TODO: put in theme as $primary
h2 {
margin: 0;
font-weight: normal;
}
}
2018-09-28 15:10:48 +02:00
.motion-content {
display: flow-root;
}
.motion-text-controls {
float: right;
button {
font-size: 115%;
}
}
2018-09-03 14:23:54 +02:00
.meta-info-panel {
padding-top: 25px;
a:hover {
cursor: pointer;
2018-08-16 17:03:39 +02:00
}
}
.mat-accordion {
display: block;
margin-top: 0px;
}
.mat-expansion-panel {
padding-top: 0;
2018-08-16 17:03:39 +02:00
.expansion-panel-custom-body {
padding-left: 55px;
}
}
.statute-amendment-selector {
mat-form-field {
margin-left: 20px;
}
}
.motion-content {
h4 {
margin: 10px 10px 15px 0;
2018-08-16 17:03:39 +02:00
display: block;
font-weight: bold;
font-size: 110%;
2018-08-16 17:03:39 +02:00
}
h5 {
margin: 15px 10px 10px 0;
2018-08-16 17:03:39 +02:00
display: block;
font-weight: bold;
font-size: 100%;
}
.motion-text {
margin-left: 0px;
}
//the assembly may decide ...
.text-prefix-label {
display: block;
margin: 0 10px 7px 0px;
}
2018-12-10 17:54:48 +01:00
.extra-data {
margin-top: 1em;
}
.content-field {
display: inline-block;
::ng-deep {
.mat-form-field {
width: 100%;
}
}
}
.form100 {
width: 100%;
}
.form70 {
width: 70%;
}
.form30 {
width: 30%;
}
.form-id-title {
display: flex;
.form-identifier {
flex: 0 0 95px;
max-width: 95px;
margin-right: 1em;
}
.form-title {
flex: 1 1 auto;
}
}
}
2018-09-03 14:23:54 +02:00
.desktop-view {
.desktop-left {
width: 30%;
float: left;
.meta-info-desktop {
padding-left: 20px;
2018-09-03 14:23:54 +02:00
}
}
.desktop-right {
display: grid;
min-width: 70%;
mat-card {
display: inline;
margin: 0px 40px 10px 10px;
2018-09-03 14:23:54 +02:00
}
}
}
2018-09-09 18:52:47 +02:00
/* Line numbers */
// :host ::ng-deep is needed as this styling applies to the motion html that is injected using innerHTML,
// which doesn't have the [ngcontent]-attributes necessary for regular styles.
// An alternative approach (in case ::ng-deep gets removed) might be to change the view encapsulation.
:host ::ng-deep .motion-text {
2018-09-30 18:43:20 +02:00
ins,
.insert {
2018-09-09 18:52:47 +02:00
color: green;
text-decoration: underline;
}
2018-09-30 18:43:20 +02:00
del,
.delete {
2018-09-09 18:52:47 +02:00
color: red;
text-decoration: line-through;
}
li {
padding-bottom: 10px;
}
ol,
ul {
margin-left: 15px;
margin-bottom: 0;
}
.highlight {
background-color: #ff0;
}
&.line-numbers-outside {
padding-left: 40px;
position: relative;
.os-line-number {
display: inline-block;
font-size: 0;
line-height: 0;
width: 22px;
height: 22px;
position: absolute;
left: 0;
padding-right: 55px;
&:after {
content: attr(data-line-number);
position: absolute;
top: 10px;
vertical-align: top;
color: gray;
font-size: 12px;
font-weight: normal;
}
2018-09-30 18:43:20 +02:00
&.selectable:hover:before,
&.selected:before {
position: absolute;
top: 4px;
left: 20px;
display: inline-block;
cursor: pointer;
content: '';
width: 16px;
height: 16px;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z" fill="%23337ab7"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
background-size: 16px 16px;
}
2018-09-09 18:52:47 +02:00
}
}
&.line-numbers-inline {
.os-line-break {
display: none;
}
.os-line-number {
display: inline-block;
&:after {
display: inline-block;
content: attr(data-line-number);
vertical-align: top;
font-size: 10px;
font-weight: normal;
color: gray;
margin-top: -3px;
margin-left: 0;
margin-right: 0;
}
}
}
&.line-numbers-none {
.os-line-break {
display: none;
}
.os-line-number {
display: none;
}
}
2018-11-04 11:11:48 +01:00
.os-split-before {
margin-top: 0;
padding-top: 0;
}
.os-split-after {
margin-bottom: 0;
padding-bottom: 0;
}
li.os-split-before {
list-style: none;
}
}
:host ::ng-deep .amendment-view {
.os-split-after {
margin-bottom: 0;
}
.os-split-before {
margin-top: 0;
}
.paragraph-context {
opacity: 0.5;
}
&.amendment-context .paragraph-context {
opacity: 1;
}
2018-09-09 18:52:47 +02:00
}