From 0a9286c591b69ea42b1cd12245b17f2c934cdecb Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Fri, 31 Aug 2018 18:21:22 +0200 Subject: [PATCH] scss: add common agenda tables styles (#26003) --- chrono/manager/static/css/style.scss | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/chrono/manager/static/css/style.scss b/chrono/manager/static/css/style.scss index 5f0fc1a..f8f23a8 100644 --- a/chrono/manager/static/css/style.scss +++ b/chrono/manager/static/css/style.scss @@ -91,23 +91,23 @@ a.timeperiod-exception-all { min-width: 24ex; } -.dayview table { +table.agenda-table { border-collapse: collapse; } -.dayview thead th { +.agenda-table thead th { width: 14vw; padding-bottom: 1ex; } @for $i from 1 through 7 { - .dayview .desks-#{$i} { + .agenda-table.desks-#{$i} { width: 100%; thead th { width: (100%/$i)-1%; } } } -.dayview tbody th { +.agenda-table tbody th { box-sizing: border-box; text-align: left; padding: 1ex 2ex; @@ -115,15 +115,15 @@ a.timeperiod-exception-all { width: 8ex; } -.dayview tbody tr:nth-child(2n+1) th, -.dayview tbody tr:nth-child(2n+1) td { +.agenda-table tbody tr:nth-child(2n+1) th, +.agenda-table tbody tr:nth-child(2n+1) td { background: #f0f0f0; @media print { border-top: 1px solid #aaa; } } -.dayview tbody td { +.agenda-table tbody td { padding: 0 1ex; vertical-align: top; position: relative; @@ -135,7 +135,7 @@ a.timeperiod-exception-all { } } -.dayview tbody td div { +.agenda-table tbody td div { box-sizing: border-box; padding: 1ex; position: absolute; -- 2.19.0.rc1