aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/SearchBox.scss
blob: a439aea3ec657117d15fe90c42732fd526f550ae (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
@import "../global/globalCssVariables";
@import "./NaviconButton.scss";

.searchBox-container {
    width: 100%;
    height: 100%;
    font-size: 10px;
    line-height: 1;
    background: none;
    z-index: 1000;
    padding: 0px;
    cursor: default;

    .searchBox-bar {
        width: 100%;
        height: fit-content;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: none;
        padding: 5px;
        top: 0px;
        position: sticky;
        overflow-y: scroll;
        border-bottom: $standard-border;

        .searchBox-type {
            display: block;
            width: 55px;
            outline: none;
            padding: 1px 5px 1px 5px;
            color: black;
            height: 25px;
            border: 1px solid black;
            border-right: 0px;
        }

        .searchBox-input {
            display: block;
            width: calc(100% - 55px);
            outline: none;
            padding: 1px 5px 1px 5px;
            color: black;
            height: 25px;
            border: 1px solid black;
        }
    }

    .section-header {

        .section-title {
            font-size: $body-text;
            font-weight: 600;
        }

        .section-subtitle {
            display: flex;
            color: $light-gray;
        }
        
        padding: 5px 10px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        background: $medium-blue;
        color: white;
    }

    .searchBox-recommendations-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: fit-content;
        justify-content: "center";

        .searchBox-recommendations-view {
            margin-top: 10px;
            display: flex;
            width: 100%;
            height: fit-content;
            flex-direction: column;
            gap: 10px;
            padding: 0px 10px;
            

        }
    }

    .searchBox-results-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: fit-content;
        justify-content: "center";
    
        .searchBox-results-view {
            display: inline-block;
            width: 100%;
            height: fit-content;

            .searchBox-results-scroll-view-result {
                display: inline-block;
                vertical-align: middle;
                width: 100%;
                height: fit-content;
                cursor: pointer;
                font-size: 15px;
                padding: 10px;

                &.searchBox-results-scroll-view-result-selected {
                    background: #999;
                }

                .searchBox-result-title {
                    display: relative;
                    float: left;
                    width: calc(100% - 45px);
                    text-align: left;
                    overflow: hidden;
                    max-height: 2.4em;
                    line-height: 1.2em;
                    text-overflow: ellipsis;
                }

                .searchBox-result-type {
                    font-size: 12px;
                    margin-top: 6px;
                    display: relative;
                    float: right;
                    width: 45px;
                    text-align: right;
                    color: #222;
                }

                .searchBox-result-keys {
                    font-size: 10px;
                    margin-top: 1px;
                    display: relative;
                    float: left;
                    width: 100%;
                    text-align: left;
                    color: #555;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }
        }
    }
}