aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/SearchBox.scss
blob: e8865b918fd930d7b337fa7971280b89a6de6f4e (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
@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: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: none;
        padding: 5px;

        .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;
        }
    }

    .searchBox-results-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        justify-content: "center";
    
        .searchBox-results-count {
            display: flex;
            color: gray;
            margin-left: 5px;
        }
    
        .searchBox-results-scroll-view {
            margin-top: 10px;
            display: inline-block;
            width: 100%;
            height: calc(100% - 55px);
            overflow-y: scroll;

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

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

                .searchBox-result-title {
                    display: relative;
                    float: left;
                    width: calc(100% - 45px);
                    text-align: left;
                    overflow: hidden;
                    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;
                }
            }
        }
    }
}