github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/static/semantic/dist/components/search.css (about) 1 /*! 2 * # Semantic UI x.x - Search 3 * http://github.com/semantic-org/semantic-ui/ 4 * 5 * 6 * Copyright 2014 Contributors 7 * Released under the MIT license 8 * http://opensource.org/licenses/MIT 9 * 10 */ 11 12 13 /******************************* 14 Search 15 *******************************/ 16 17 .ui.search { 18 position: relative; 19 } 20 .ui.search > .prompt { 21 margin: 0em; 22 outline: none; 23 -webkit-appearance: none; 24 -webkit-tap-highlight-color: rgba(255, 255, 255, 0); 25 text-shadow: none; 26 font-style: normal; 27 font-weight: normal; 28 line-height: 1.2; 29 padding: 0.68571em 1em; 30 font-size: 1em; 31 background: #ffffff; 32 border: 1px solid rgba(39, 41, 43, 0.15); 33 color: rgba(0, 0, 0, 0.8); 34 box-shadow: 0em 0em 0em 0em transparent inset; 35 -webkit-transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; 36 transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; 37 } 38 .ui.search .prompt { 39 border-radius: 500rem; 40 } 41 42 /*-------------- 43 Icon 44 ---------------*/ 45 46 .ui.search .prompt ~ .search.icon { 47 cursor: pointer; 48 } 49 50 /*-------------- 51 Results 52 ---------------*/ 53 54 .ui.search > .results { 55 display: none; 56 position: absolute; 57 top: 100%; 58 left: 0%; 59 background: #ffffff; 60 margin-top: 0.5em; 61 width: 16em; 62 border-radius: 0.25em; 63 box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.2); 64 z-index: 998; 65 } 66 67 /*-------------- 68 Result 69 ---------------*/ 70 71 .ui.search > .results .result { 72 cursor: pointer; 73 display: block; 74 overflow: hidden; 75 font-size: 1em; 76 padding: 0.5em 1em; 77 color: rgba(0, 0, 0, 0.8); 78 line-height: 1.33; 79 border-bottom: 1px solid rgba(39, 41, 43, 0.15); 80 } 81 .ui.search > .results .result:last-child { 82 border-bottom: none; 83 } 84 85 /* Image */ 86 .ui.search > .results .result .image { 87 float: right; 88 overflow: hidden; 89 background: none; 90 width: 5em; 91 height: 3em; 92 border-radius: 0.25em; 93 } 94 .ui.search > .results .result .image img { 95 display: block; 96 width: auto; 97 height: 100%; 98 } 99 100 /*-------------- 101 Info 102 ---------------*/ 103 104 .ui.search > .results .result .image + .content { 105 margin: 0em 6em 0em 0em; 106 } 107 .ui.search > .results .result .title { 108 font-family: 'Roboto', 'Helvetica Neue', Arial, Helvetica, sans-serif; 109 font-weight: bold; 110 font-size: 1em; 111 color: rgba(0, 0, 0, 0.85); 112 } 113 .ui.search > .results .result .description { 114 margin-top: 0em; 115 font-size: 0.9285em; 116 color: rgba(0, 0, 0, 0.4); 117 } 118 .ui.search > .results .result .price { 119 float: right; 120 color: #5bbd72; 121 } 122 123 /*-------------- 124 Message 125 ---------------*/ 126 127 .ui.search > .results > .message { 128 padding: 1em 1em; 129 } 130 .ui.search > .results > .message .header { 131 font-family: 'Roboto', 'Helvetica Neue', Arial, Helvetica, sans-serif; 132 font-size: 1.1428em; 133 font-weight: bold; 134 color: rgba(0, 0, 0, 0.8); 135 } 136 .ui.search > .results > .message .description { 137 margin-top: 0.25rem; 138 font-size: 1em; 139 color: rgba(0, 0, 0, 0.8); 140 } 141 142 /* View All Results */ 143 .ui.search > .results > .action { 144 display: block; 145 border-top: none; 146 background: #f0f0f0; 147 padding: 0.5em 1em; 148 color: rgba(0, 0, 0, 0.8); 149 font-weight: bold; 150 text-align: center; 151 } 152 153 154 /******************************* 155 States 156 *******************************/ 157 158 159 /*-------------------- 160 Loading 161 ---------------------*/ 162 163 .ui.loading.search .input > .icon:before { 164 position: absolute; 165 content: ''; 166 top: 50%; 167 left: 50%; 168 margin: -0.64285em 0em 0em -0.64285em; 169 width: 1.2857em; 170 height: 1.2857em; 171 border-radius: 500rem; 172 border: 0.2em solid rgba(0, 0, 0, 0.1); 173 } 174 .ui.loading.search .input > .icon:after { 175 position: absolute; 176 content: ''; 177 top: 50%; 178 left: 50%; 179 margin: -0.64285em 0em 0em -0.64285em; 180 width: 1.2857em; 181 height: 1.2857em; 182 -webkit-animation: button-spin 0.6s linear; 183 animation: button-spin 0.6s linear; 184 -webkit-animation-iteration-count: infinite; 185 animation-iteration-count: infinite; 186 border-radius: 500rem; 187 border-color: #aaaaaa transparent transparent; 188 border-style: solid; 189 border-width: 0.2em; 190 box-shadow: 0px 0px 0px 1px transparent; 191 } 192 193 /*-------------- 194 Hover 195 ---------------*/ 196 197 .ui.search > .results .result:hover, 198 .ui.category.search > .results .category .result:hover { 199 background: #fafafa; 200 } 201 .ui.search .action:hover { 202 background: #e0e0e0; 203 } 204 205 /*-------------- 206 Active 207 ---------------*/ 208 209 .ui.search > .results .category.active { 210 background: #f0f0f0; 211 } 212 .ui.search > .results .category.active > .name { 213 color: rgba(0, 0, 0, 0.8); 214 } 215 .ui.search > .results .result.active, 216 .ui.category.search > .results .category .result.active { 217 position: relative; 218 border-left-color: transparent; 219 background: #f0f0f0; 220 box-shadow: 3px 0px 3px 0px rgba(39, 41, 43, 0.15); 221 } 222 .ui.search > .results .result.active .title { 223 color: rgba(0, 0, 0, 0.85); 224 } 225 .ui.search > .results .result.active .description { 226 color: rgba(0, 0, 0, 0.85); 227 } 228 229 230 /******************************* 231 Types 232 *******************************/ 233 234 235 /*-------------- 236 Categories 237 ---------------*/ 238 239 .ui.category.search .results { 240 width: 28em; 241 } 242 243 /* Category */ 244 .ui.category.search > .results .category { 245 background: #f0f0f0; 246 box-shadow: none; 247 border-bottom: 1px solid rgba(39, 41, 43, 0.15); 248 -webkit-transition: background 0.2s ease, border-color 0.2s ease; 249 transition: background 0.2s ease, border-color 0.2s ease; 250 } 251 .ui.category.search > .results .category:last-child { 252 border-bottom: none; 253 } 254 255 /* Category Result */ 256 .ui.category.search > .results .category .result { 257 background: #ffffff; 258 margin-left: 100px; 259 border-left: 1px solid rgba(39, 41, 43, 0.15); 260 border-bottom: 1px solid rgba(39, 41, 43, 0.15); 261 -webkit-transition: background 0.2s ease, border-color 0.2s ease; 262 transition: background 0.2s ease, border-color 0.2s ease; 263 } 264 .ui.category.search > .results .category .result:last-child { 265 border-bottom: none; 266 } 267 268 /* Category Result Name */ 269 .ui.category.search > .results .category > .name { 270 width: 100px; 271 background: #f0f0f0; 272 font-family: 'Roboto', 'Helvetica Neue', Arial, Helvetica, sans-serif; 273 font-size: 1em; 274 float: 1em; 275 float: left; 276 padding: 0.4em 1em; 277 font-weight: bold; 278 color: rgba(0, 0, 0, 0.4); 279 } 280 281 282 /******************************* 283 Variations 284 *******************************/ 285 286 287 /*------------------- 288 Left / Right 289 --------------------*/ 290 291 .ui[class*="left aligned"].search > .results { 292 right: auto; 293 left: 0%; 294 } 295 .ui[class*="right aligned"].search > .results { 296 right: 0%; 297 left: auto; 298 } 299 300 /*-------------- 301 Fluid 302 ---------------*/ 303 304 .ui.fluid.search .results { 305 width: 100%; 306 } 307 308 /*-------------- 309 Sizes 310 ---------------*/ 311 312 .ui.search { 313 font-size: 1em; 314 } 315 .ui.large.search { 316 font-size: 1.1em; 317 } 318 319 320 /******************************* 321 Theme Overrides 322 *******************************/ 323 324 325 326 /******************************* 327 Site Overrides 328 *******************************/ 329