summaryrefslogtreecommitdiffstats
path: root/web/sass-files/sass/partials/_search.scss
blob: bedf353769ceb7b107bea02d904ab9fbed644555 (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
#channel-header .search-bar__container {
    padding: 0 8px 0 0;
}
.search-bar__container {
	padding: 12px 8px 0 0;
    @include flex(0 0 56px);
}
.search__clear {
	display: none;
	position: absolute;
	right: 0;
	line-height: 45px;
	margin-right: 13px;
	@include single-transition(all, 0.2s, linear);
	@include translateX(60px);
	z-index: 5;
	cursor: pointer;
}
.sidebar__collapse {
	cursor: pointer;
	z-index: 5;
	fill: #FFF;
	position: absolute;
	left: 0;
	font-size: 35px;
	width: 49px;
	@include single-transition(all, 0.2s, linear);
	@include translateX(0px);
	text-align: center;
	padding-left: 1px;
	line-height: 40px;
	display: none;
}
.sidebar__search-icon {
	position: absolute;
	top: 15px;
	margin-left: 10px;
	font-size: 14px;
	@include opacity(0.5);
	display: none;
}
.search__form {
	.search-bar__container & {
		margin: 0;
		border: 1px solid #DDD;
		@include border-radius(2px);
		width: 300px;
	}
	.sidebar--right & {
		width: 100%;
	}
	.search-bar {
		height: 40px;
		padding-right: 30px;
		box-shadow: none;
		.search-bar__container & {
			height: 30px;
			border: none;
		}
	}
	.glyphicon-refresh-animate {
		top: 27px;
		position: absolute;
		right: 27px;
		color: #999;
		.search-bar__container & {
			right: 7px;
			top: 8px;
		}
	}
}

.search-items-container {
	position: relative;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	@include flex(1 1 auto);
	height: calc(100% - 56px);
}

.search-results-header {
	font-size: 1em;
	text-transform: uppercase;
	color: #999;
	font-weight: 400;
	color: #888;
	height: 44px;
	line-height: 44px;
	padding: 0 10px 0 10px;
	border-bottom: $border-gray;
}

.search-item-container {
	border-top: $border-gray;
	padding: 10px 1em;
	margin: 0;
	cursor: pointer;

	&:first-child {
		border: none;
	}

	.search-channel__name {
		font-weight: 600;
		margin: 0 0 10px 0;
	}
}

.search-item-time {
	color: #a8adb7;
}

.search-results-none {
	padding: 10px;
}

.search-highlight {
	background-color: #FFF2BB;
}