aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/SearchBox.scss
blob: 13d4a6d5a514e8373317f55b050a06691ca43253 (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
@import "../globalCssVariables";
@import "./NaviconButton.scss";

.searchBox-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    font-size: 10px;
    line-height: 1;
    overflow-y: auto;
    overflow-x: visible;
    background: lightgrey;
    overflow: visible;
    z-index: 10000;

    .searchBox-bar {
        height: $searchpanel-height;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: black;

        .searchBox-lozenges {
            position: absolute;
            left: 15;
            display: flex;

            .searchBox-lozenge-user,
            .searchBox-lozenge-dashboard,
            .searchBox-lozenge {
                background-color: #313131;
                border-radius: 5px;
                height: 18px;
                padding: 4px;
                box-shadow: lightgrey 0.15em 0.15em 0.1em;
                margin: 2px;
                margin-bottom: 4px;
                border-top: dimgrey 1px solid;
                border-left: dimgrey 1px solid;
                display: flex;
                .searchBox-logoff,
                .searchBox-dashboards {
                    border-radius: 3px;
                    background: olivedrab;
                    color: white;
                    position: relative;
                    display: none;
                    margin-left: 3px;
                    padding-left: 2px;
                    padding-right: 2px;
                    padding-bottom: 11px;
                    cursor: default;
                }
                .searchBox-logoff {
                    background: red;
                }

                .searchBox-dashSelect{
                    background-color: black;
                    color: white;
                    font-size: 9;
                    margin-right: 6;
                    border-radius: 5px;
                    position: relative;
                    height: 15px;
                    transform: translate(0,-3px);

                    &:hover {
                        cursor: pointer;
                    }
                }
            }
            .searchBox-lozenge-user:hover {
                .searchBox-logoff {
                    display:inline-block;
                }
            }
            .searchBox-lozenge-dashboard:hover {
                .searchBox-dashboards {
                    display:inline-block;
                }
            }
        }
        .searchBox-query {
            position: relative;
            display: flex;
            width: 450;
        }
        .searchBox-barChild {

            &.searchBox-collection {
                flex: 0 1 auto;
                margin-left: 2px;
                margin-right: 2px
            }

            &.searchBox-input {
                margin:5px;
                border-radius:20px;
                border:black;    
                display: block;
                width: 130px;
                -webkit-transition: width 0.4s;
                transition: width 0.4s;
                align-self: stretch;
                outline:none;
                &:focus {
                    width: 500px;
                    outline:none;
                }
            }
            &.searchBox-filter {
                align-self: stretch;
                button{
                    transform:none;
                    &:hover {
                        transform: none;
                    }
                }
            }

            &.searchBox-submit {
                margin-left: 2px;
                margin-right: 2px
            }

            &.searchBox-close {
                color: $light-color;
                max-height: $searchpanel-height;
            }
        }
    }   
}

.searchBox-results {
    display: flex;
    flex-direction: column;
    top: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;

    .no-result {
        width: 500px;
        background: $light-color-secondary;
        padding: 10px;
        height: 50px;
        text-transform: uppercase;
        text-align: left;
        font-weight: bold;
    }
}