summaryrefslogtreecommitdiffstats
path: root/webui/src/Components/Timeline/DateNode.scss
blob: 9af6cfc51097f0576da030e5465625f489211040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@import '../../variables';

.DateNode {
    position: relative;
    height: 4rem;

    .date {
        $width: 5.5rem;
        background-color: $color-blue-gray;
        border-radius: .3rem;
        font-family: 'Roboto', sans-serif;
        border: $line-thickness solid $body-background;
        width: $width;
        border-radius: .5rem;
        margin: 0;
        color: white;
        font-size: .8rem;
        line-height: 1.4rem;
        text-align: center;
        margin-top: calc(-.7rem - #{$line-thickness});
        background: white;
        color: #666;
        margin: 0 auto;
        
        @media screen and (min-width : $mobile-min-width) {
            position: absolute;
            top: 50%;
            left: calc(92% - #{$width / 2} - #{$line-thickness});
        }
        @media screen and (min-width : $tablet-min-width) {
            left: calc(50% - #{$width / 2} - #{$line-thickness});
        }
    }

    &.first {
        .date {
            top: auto;
            bottom: 0;
        }
    }

    // Horizontal line
    .horizontal-line {
        position: absolute;
        top: 0;
        width: $line-thickness;
        height: 100%;
        background-color: $color-blue-gray;
        content: ' ';
        left: calc(92% - #{$line-thickness / 2});
        display: none;
        @media screen and (min-width : $mobile-min-width) {
            display: block;
        }
        @media screen and (min-width : $tablet-min-width) {
            left: calc(50% - #{$line-thickness / 2});
        }
    }
}