hugvey/www/scss/styles.scss

360 lines
6 KiB
SCSS
Raw Normal View History

2019-01-24 14:27:04 +01:00
$status_width: 430px;
$status_width_open: 860px;
2019-01-23 15:26:44 +01:00
body{
2019-01-23 15:41:40 +01:00
font-family: "Noto Sans", sans-serif;
2019-01-23 15:26:44 +01:00
margin: 0;
}
2019-01-24 14:27:04 +01:00
.btn, input[type="submit"]{
2019-01-23 15:26:44 +01:00
display:inline-block;
cursor: pointer;
background: #333;
padding: 5px;
color: white;
border-radius: 5px;
2019-01-24 14:27:04 +01:00
margin-right: 5px;
white-space: nowrap;
border: none;
&:hover{
background: #666;
}
}
@keyframes dash-animation {
to {
stroke-dashoffset: -1000;
}
2019-01-23 15:26:44 +01:00
}
img.icon{
height: .9em;
width: .9em;
}
2019-01-23 15:26:44 +01:00
#interface{
display: flex;
flex-direction: row;
height: 100vh;
width: 100vw;
2019-01-24 14:27:04 +01:00
&.showStatus{
}
2019-01-23 15:26:44 +01:00
}
#status{
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 430px;
height: 100%;
overflow-y: scroll;
& > div{
width: 33.3333333%;
2019-01-25 11:17:10 +01:00
height: 200px;
2019-01-23 15:26:44 +01:00
border: solid 1px;
box-sizing: border-box;
position: relative;
2019-01-24 14:27:04 +01:00
&#overview{
width: 100% / 3 * 2;
}
2019-01-23 15:26:44 +01:00
}
.counts{
dd, dt{
display: inline-block;
width: 30px;
overflow:hidden;
text-overflow: ellipsis;
margiN: 0;
&:hover{
width: auto;
}
}
}
2019-01-23 15:26:44 +01:00
.hugvey{
background-image: linear-gradient(to top, #587457, #35a589);
color:white;
display: flex;
flex-direction: column;
justify-content: center;
h1{
text-align: center;
margin: 0;
2019-01-23 15:41:40 +01:00
font-weight: normal;
2019-01-25 11:17:10 +01:00
position: absolute;
left: 5px;
top: 5px;
}
.status{
font-sytle: italic;
color: gray;
position: absolute;
top: 10px;
right: 5px;
2019-01-23 15:26:44 +01:00
}
2019-01-25 11:17:10 +01:00
.stats{
.count{
display: inline-block;
margin-right: 10px;
2019-01-23 15:26:44 +01:00
}
2019-01-25 11:17:10 +01:00
}
2019-01-23 15:26:44 +01:00
&.hugvey--off{
background-image: linear-gradient(to top, #575d74, #3572a5);
2019-01-25 11:17:10 +01:00
.status{
text-align:center;
}
2019-01-25 11:17:10 +01:00
// &::after{
// content: 'off';
// font-style: italic;
// color: gray;
// text-align:center;
// // font-size: 30pt;
// }
}
&.hugvey--gone{
background-image: linear-gradient(to top, orange, rgb(206, 92, 0));
2019-01-25 11:17:10 +01:00
// &::after{
// content: 'disconnected';
// font-style: italic;
// color: gray;
// text-align:center;
// // font-size: 30pt;
// }
}
&.hugvey--paused{
background-image: linear-gradient(to top, rgb(136, 138, 133), rgb(85, 87, 83));
2019-01-25 11:17:10 +01:00
// &::after{
// content: 'disconnected';
// font-style: italic;
// color: gray;
// text-align:center;
// // font-size: 30pt;
// }
}
&.hugvey--finished{
background-image: linear-gradient(to top, rgb(136, 138, 133), #35a589);
2019-01-25 11:17:10 +01:00
.status{
color: darkgreen;
2019-01-23 15:26:44 +01:00
}
2019-01-25 11:17:10 +01:00
// &::after{
// content: 'disconnected';
// font-style: italic;
// color: gray;
// text-align:center;
// // font-size: 30pt;
// }
2019-01-23 15:26:44 +01:00
}
}
}
#story{
position: relative;
2019-01-24 14:27:04 +01:00
width: calc(100% - #{$status_width});
2019-01-23 15:26:44 +01:00
#controls{
position:absolute;
top: 5px;
left: 5px;
2019-01-24 14:27:04 +01:00
white-space: nowrap;
2019-01-23 15:26:44 +01:00
}
svg#graph{
width: 100%;
height: 100%;
2019-01-23 15:41:40 +01:00
cursor: grab;
&:active{
cursor: grabbing;
}
2019-01-23 15:26:44 +01:00
}
2019-01-23 15:41:40 +01:00
circle{
cursor: pointer;
fill: rgb(119, 97, 142);
}
.startMsg circle{
fill: lightseagreen;
}
.endMsg circle{
fill: lightslategray;
}
.orphanedMsg{
fill: lightcoral;
}
text{
text-anchor: middle;
font-size: 11pt;
font-family: sans-serif;
fill: white;
2019-01-24 14:27:04 +01:00
&.msg_id {
transform: translateY(-20px);
opacity: .5;
}
&.msg_txt{
font-weight: bold;
}
2019-01-23 15:41:40 +01:00
}
line{
marker-end: url('#arrowHead');
stroke-width: 2px;
stroke: black;
2019-01-24 14:27:04 +01:00
&.link--noconditions{
stroke-dasharray: 5 4;
stroke: red;
}
&.dir-highlight{
stroke-dasharray: 5;
animation: dash-animation 20s infinite linear;
stroke-width: 3px;
}
2019-01-23 15:41:40 +01:00
}
label::after {
content: '';
clear: both;
display: block;
}
label{
width:100%;
font-weight:bold;
display: block;
margin: 0 -10px;
padding: 5px 10px;
}
2019-01-24 15:01:01 +01:00
label input,label select, label .label-value{
2019-01-23 15:41:40 +01:00
float: right;
}
label:nth-child(odd){
background-color: rgba(255,255,255,0.3);
}
#msg{
position: absolute;
top:0;
right:0;
width: 30%;
max-height:100%;
overflow-y: auto;
.msg__info, .directions > div{
padding: 10px;
margin-bottom: 10px;
background:lightgray;
}
2019-01-24 14:27:04 +01:00
.direction{
position: relative;
h3{
margin-top:0;
}
.btn--delete{
position: absolute;
top: 5px;
right: 0px;
}
.condition--add{
h4{
margin: 0;
}
h4 +div {
margin-top: 10px;
}
}
}
2019-01-23 15:41:40 +01:00
}
#nodes g:hover circle,
.selectedMsg circle {
stroke: lightgreen;
stroke-width: 8;
}
.controlDown #nodes g:hover circle,
.secondaryMsg circle {
stroke: lightgreen;
stroke-width: 5;
stroke-dasharray: 10 3;
}
.condition h4{
text-align: center;
}
.condition + .condition::before {
content: "OR";
display: block;
border-bottom: solid 2px;
height: 10px;
margin-bottom: 15px;
text-align: center;
text-shadow: 2px 2px 2px lightgray,-2px 2px 2px lightgray,2px -2px 2px lightgray,-2px -2px 2px lightgray;
}
.condition--add{
/* text-align: center; */
}
2019-01-24 14:27:04 +01:00
}
.flag-icon {
background-size: contain;
background-position: 50%;
background-repeat: no-repeat;
position: relative;
display: inline-block;
width: (4 / 3) * 1em;
line-height: 1em;
&:before {
content: '\00a0';
}
&.flag-icon-squared {
width: 1em;
}
&.en-GB {
background-image: url('/images/gb.svg');
}
&.de-DE {
background-image: url('/images/de.svg');
}
&.fr-FR {
background-image: url('/images/fr.svg');
}
&.nl-NL {
background-image: url('/images/nl.svg');
}
}
.divToggle{
cursor: pointer;
&:hover{
text-decoration: underline;
}
&.opened {
+ div{
display: block;
}
}
+ div{
display: none;
}
}