summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonko T. Sane <42@wonko.de>2018-12-27 02:47:41 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-10-20 14:59:15 +0200
commit1a5c10dd417646af74581a567608e904dc96a62f (patch)
tree5b6e2e67dd792d6aadce7485399fba4f9f203235
parentb14d352140a5b3ad16b3980a52e50e870ee9fed6 (diff)
adding a dashed line when expandable
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php6
-rw-r--r--resources/assets/themes/base.less12
2 files changed, 14 insertions, 4 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index c0a9f877..2589b0cf 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -38,11 +38,11 @@ class ShiftCalendarShiftRenderer
return [
$blocks,
- div( 'shift-card "style="height: '
+ div( 'panel-' . $class. ' shift-card" style="height: '
. ($blocks * ShiftCalendarRenderer::BLOCK_HEIGHT - ShiftCalendarRenderer::MARGIN)
- . 'px;}"',
+ . 'px;',
div(
- 'shift panel panel-' . $class. '" style="position: absolute; width:99%;',
+ 'shift panel panel-' . $class. '" style="position: absolute; width:100%;',
[
$this->renderShiftHead($shift, $class),
div('panel-body', [
diff --git a/resources/assets/themes/base.less b/resources/assets/themes/base.less
index 0bf752ab..9d20ae18 100644
--- a/resources/assets/themes/base.less
+++ b/resources/assets/themes/base.less
@@ -74,6 +74,7 @@ table a > .icon-icon_angel {
}
}
+
.stats-danger {
color: @brand-danger;
}
@@ -193,10 +194,13 @@ table a > .icon-icon_angel {
z-index:0;
overflow:hidden;
position:relative;
+ border-bottom-width: 1px;
+ border-bottom-style: dashed;
}
.shift-card:hover {
overflow:visible;
z-index:100;
+ border: none;
}
.shift-card:hover .shift {
z-index:100;
@@ -204,7 +208,13 @@ table a > .icon-icon_angel {
.shift {
margin: 0 5px 5px 0;
position: absolute;
- width: 99%;
+ width: 100%;
+ }
+ .shift:hover {
+ margin: 0 5px 5px 0;
+ position: absolute;
+ width: 100%;
+ /*border: 1px solid;*/
}
}