summaryrefslogtreecommitdiff
path: root/server/web/src/design/components/Sidebar.design.tsx
blob: 4496e7920e8b05d546bbf509454819bb3ae89057 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import { ISidebarSlide } from '../../interfaces/design/SidebarDesign.interface';
import styled from 'styled-components';

export const SidebarDropdown = styled('div')`
    background-color: rgb(5, 32, 58);
    grid-template-columns: 1fr auto;
    color: rgb(0, 255, 255);
    position: fixed;
    display: grid;
    height: 100%;
    z-index: 999;
    right: 0;
    top: 0;
`;

export const SidebarDropdownButton = styled('div')`
    border-left: solid thin rgb(31, 113, 145);
    padding: 0 0.25rem 0 0.2rem;
    color: rgb(0, 255, 255);
    align-items: center;
    cursor: pointer;
    width: 1.2rem;
    display: grid;
    height: 100vh;
    z-index: 999;
`;

export const SidebarDropdownContent = styled('div') <ISidebarSlide>`
    overflow-x: hidden;
    text-align: center;
    transition: 250ms;
    overflow-y: auto;
    opacity: 0;
    padding: 0;
    width: 0;

    ${({ active }: any) =>
        active &&
        `
        border-left: solid thin rgb(31, 113, 145);
        width: calc(100vw - 1.2rem);
        opacity: 1;

        @media (min-width: 576px) {
            width: 65vw;
        }
    `}
`;

export const SidebarStreamContent = styled('div')`
    @media (min-width: 992px) {
        padding: 0.5rem 0;
    }

    @media (min-width: 1200px) {
        padding: 1rem 0;
    }

    @media (min-width: 1600px) {
        padding: 1.5rem 0;
    }
`;

export const SidebarStream = styled('div')`
    border-bottom: solid thin rgb(31, 113, 145);
    border-top: solid thin rgb(31, 113, 145);
    background-color: rgb(5, 32, 58);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 0.8rem 0;
`;

export const SidebarStreamSection = styled('div')`
    grid-template-columns: 1fr auto;
    display: grid;
`;

export const SidebarStreamInput = styled('input')`
    padding: 0.45rem 0.45rem 0.45rem 0.6rem;
    border: solid thin rgb(31, 93, 117);
    background-color: rgb(5, 32, 58);
    width: calc(100% - 0.8rem);
    color: rgb(255, 255, 255);
    border-radius: 5rem;
    font-size: 0.8rem;
    margin: 0.4rem;
`;

export const SidebarStreamButton = styled('button')`
    border: solid thin rgb(31, 93, 117);
    background-color: rgb(5, 32, 58);
    margin: 0.4rem 0.4rem 0.4rem 0;
    color: rgb(255, 255, 255);
    padding: 0.5rem 2rem;
    border-radius: 5rem;
    transition: 250ms;

    @media (min-width: 576px) {
        padding: 0.5rem 4rem;
    } 
`;

export const SidebarBlock = styled('div')`
    background-color: rgb(31, 93, 117);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 0.8rem 0;
`;