_search-tab.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. $photos-main-color:#6D6D6D;
  2. $photos-second-color:#EE7800;
  3. $light-gray:#9D9D9D;
  4. $photos-main-font-size:18px;
  5. $photos-second-font-size:14px;
  6. $photos-third-font-size:16px;
  7. $photos-mob-main-font-size:16px;
  8. $photos-mob-second-font-size:14px;
  9. $photos-main-family:'Microsoft JhengHei', Helvetica,Noto Sans TC,Roboto,Arial,sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  10. body{
  11. &.active{
  12. background-color: transparent;
  13. }
  14. }
  15. // ################### search-tab desktop ###################//
  16. .search-tab{
  17. font-family: $photos-main-family;
  18. // ######## 下拉選單按鈕 ########
  19. .btn{
  20. &.btn-original{
  21. background-color: #fff;
  22. font-weight: bold;
  23. font-size: $photos-main-font-size;
  24. font-family: $photos-main-family;
  25. border-color: $photos-main-color;
  26. &:visited, &:active, &:hover{
  27. color: $photos-second-color;
  28. border-color: $photos-second-color;
  29. }
  30. }
  31. &.btn-original-ckecked{
  32. color: $photos-second-color;
  33. border-color: $photos-second-color;
  34. }
  35. &:focus{
  36. box-shadow: 0 0 0 0.2rem rgba(238, 120, 0, 0.25);
  37. }
  38. }
  39. .dropdown-menu{
  40. width: 173px;
  41. max-height: 298px;
  42. overflow-y: auto;
  43. transform: none !important;
  44. top: 40px !important;
  45. }
  46. .radio-btn{
  47. color: $photos-main-color;
  48. }
  49. .form-check-label{
  50. font-size: $photos-third-font-size;
  51. &:hover{
  52. cursor: pointer;
  53. }
  54. }
  55. .color-selection{
  56. width: 16px;
  57. height: 16px;
  58. background-color: red;
  59. display: inline-flex;
  60. border: 1px solid #ddd;
  61. }
  62. .list-group{
  63. box-shadow: 0 3px 6px rgba(0, 0, 0, 0.396);
  64. }
  65. .list-group-item{
  66. // padding: 14px;
  67. // border: none;
  68. scrollbar-width:none; /*Firefox*/
  69. &:hover{
  70. a{
  71. text-decoration: none;
  72. cursor: pointer;
  73. }
  74. }
  75. a{
  76. color: #000;
  77. }
  78. }
  79. .list-group-item::-webkit-scrollbar {
  80. display: none; /*Chrome Safari*/
  81. -ms-overflow-style: none;
  82. }
  83. // ######## 下拉選單結果 ########
  84. .search-tab-itemResult-wrapper{
  85. border-top: 1px solid #EAEAEA;
  86. border-bottom: 1px solid #EAEAEA;
  87. span{
  88. font-size: 14px;
  89. }
  90. img{
  91. &:hover{
  92. cursor: pointer;
  93. }
  94. }
  95. i{
  96. &:hover{
  97. cursor: pointer;
  98. }
  99. }
  100. a{
  101. color: $photos-main-color;
  102. &:hover{
  103. text-decoration: none;
  104. }
  105. }
  106. }
  107. .search-tab-itemResult-style{
  108. color: $photos-second-color;
  109. padding-top: 2px;
  110. padding-bottom: 2px;
  111. padding-right: 10px;
  112. display: -webkit-inline-box;
  113. }
  114. .clearall{
  115. font-size: $photos-third-font-size;
  116. padding-top: 8px;
  117. padding-bottom: 8px;
  118. }
  119. .search-tab-total{
  120. font-size: $photos-third-font-size;
  121. color: $light-gray;
  122. }
  123. .search-tab-filter{
  124. .search-tab-filter-divider:before{
  125. height: 50%;
  126. display: inline-block;
  127. border: .5px solid $light-gray;
  128. }
  129. a{
  130. color: $light-gray;
  131. font-size: $photos-third-font-size;
  132. border-bottom:1px solid transparent;
  133. transition: border 300ms ease-in-out;
  134. &:hover, &:active{
  135. text-decoration: none;
  136. color: $photos-second-color;
  137. border-bottom:1px solid $photos-second-color;
  138. }
  139. &.active{
  140. color: $photos-second-color;
  141. border-bottom:1px solid $photos-second-color;
  142. }
  143. }
  144. }
  145. }
  146. // ################### search-tab mobile ###################//
  147. .st-mobile{
  148. margin-top: 5rem;
  149. // ######## 下拉選單按鈕 ########
  150. .st-mobile-button::-webkit-scrollbar {
  151. display: none; /*Chrome Safari*/
  152. -ms-overflow-style: none;
  153. }
  154. .st-mobile-button{
  155. background-color: #FFF;
  156. width: 100%;
  157. overflow-x: auto;
  158. overflow-y: hidden;
  159. scrollbar-width:none; /*Firefox*/
  160. .st-mobile-button-wrapper{
  161. width: max-content;
  162. overflow-x: auto;
  163. overflow-y: hidden;
  164. }
  165. button.btn-original{
  166. font-weight: bold;
  167. border-color: $photos-main-color;
  168. font-family: $photos-main-family;
  169. background-color: #fff;
  170. font-size: $photos-mob-main-font-size;
  171. margin-right: 10px;
  172. &:visited, &:active{
  173. color: $photos-second-color;
  174. border-color: $photos-second-color;
  175. }
  176. &.btn-original-ckecked{
  177. color: $photos-second-color;
  178. border-color: $photos-second-color;
  179. }
  180. &:focus{
  181. box-shadow: 0 0 0 0.2rem rgba(238, 120, 0, 0.25);
  182. }
  183. }
  184. #mb-select{
  185. display: block;
  186. &.active{
  187. display: none;
  188. }
  189. }
  190. }
  191. // ######## 下拉選單結果 ########
  192. .st-mobile-itemResult{
  193. border-top: 1px solid #EAEAEA;
  194. border-bottom: 1px solid #EAEAEA;
  195. span{
  196. margin-left: 0.25rem;
  197. display: inline-flex;
  198. align-items: center;
  199. color: $photos-second-color;
  200. font-size: $photos-mob-second-font-size;
  201. }
  202. img{
  203. margin-left: 0.25rem;
  204. }
  205. a{
  206. text-decoration: none;
  207. }
  208. .num{
  209. color: $light-gray;
  210. }
  211. }
  212. .st-mobile-itemResult-items{
  213. overflow-x: auto;
  214. overflow-y: hidden;
  215. }
  216. .st-mobile-itemResult-style{
  217. font-family: $photos-main-family;
  218. align-self: center;
  219. display: inline-flex;
  220. align-items: center;
  221. padding-top: 1px;
  222. padding-bottom: 2px;
  223. padding-right: 8px;
  224. display: -webkit-inline-box;
  225. }
  226. .st-mobile-total{
  227. font-family: $photos-main-family;
  228. font-size: $photos-mob-second-font-size;
  229. color: $light-gray;
  230. padding-left: 8px;
  231. }
  232. .st-mobile-filter{
  233. font-family: $photos-main-family;
  234. .st-mobile-filter-divider{
  235. height: 50%;
  236. display: inline-block;
  237. border: .5px solid $light-gray;
  238. }
  239. a{
  240. color: $light-gray;
  241. font-size: $photos-mob-second-font-size;
  242. border-bottom:1px solid transparent;
  243. transition: border 300ms ease-in-out;
  244. &:active{
  245. text-decoration: none;
  246. color: $photos-second-color;
  247. border-bottom:1px solid $photos-second-color;
  248. }
  249. &.active{
  250. color: $photos-second-color;
  251. border-bottom:1px solid $photos-second-color;
  252. }
  253. }
  254. }
  255. .clearall{
  256. color: $photos-main-color;
  257. font-size: $photos-mob-second-font-size;
  258. font-family: $photos-main-family;
  259. padding-top: 2px;
  260. padding-bottom: 3px;
  261. }
  262. }
  263. //search-tab dropdown mobile
  264. .st-mobile-overlay{
  265. position: relative;
  266. bottom: 0;
  267. .st-mobile-mask{
  268. width: 100%;
  269. height: 100%;
  270. }
  271. &.active .st-mobile-dropdown{
  272. bottom: -9px;
  273. }
  274. &.active .st-mobile-mask{
  275. display: block;
  276. }
  277. }
  278. .st-mobile-mask{
  279. display: none;
  280. position: fixed;
  281. bottom: 57px; //置底選單高度
  282. z-index: 4;
  283. background: rgba(0, 0, 0, 0.7);
  284. }
  285. .st-mobile-dropdown{
  286. background: #fff;
  287. color: #000;
  288. width: 100%;
  289. position: absolute;
  290. bottom: -9px;
  291. transition: bottom 1s ease;
  292. height: 45vh;
  293. overflow-y: scroll;
  294. z-index: 5;
  295. a{
  296. color: #000;
  297. }
  298. .st-mobile-selection{
  299. position: relative;
  300. .st-mobile-close{
  301. color: #EE7800;
  302. font-weight: bold;
  303. position: absolute;
  304. right: 5%;
  305. bottom:30%;
  306. }
  307. }
  308. .st-mobile-title{
  309. font-weight: bold;
  310. color: #43484C;
  311. }
  312. .list-group-wrapper{
  313. height: 30vh;
  314. overflow-y: scroll;
  315. }
  316. }
  317. //searchall dropdown mobile
  318. .searchall{
  319. &.searchall-overlay{
  320. width: 100%;
  321. z-index: 1030;
  322. position: fixed;
  323. top: 0;
  324. &.active .searchall-box{
  325. display: block;
  326. }
  327. &.active .searchall-mask{
  328. display: block;
  329. }
  330. }
  331. .searchall-mask{
  332. width: 100%;
  333. height: 100%;
  334. position: fixed;
  335. background: rgba(0, 0, 0, 0.7);
  336. display: none;
  337. top: 0;
  338. }
  339. .searchall-box{
  340. width: 100%;
  341. position: relative;
  342. background-color: #fff;
  343. display: none;
  344. .searchall-block{
  345. z-index: 1040;
  346. }
  347. .searchall-keywords-link{
  348. color: #000;
  349. margin-bottom: 10px;
  350. &:hover{
  351. text-decoration: none;
  352. }
  353. }
  354. }
  355. .dropdown-toggle::after{
  356. display: none;
  357. }
  358. .dropdown-origin-width{
  359. min-width: 5rem;
  360. }
  361. .input-group-search {
  362. display: -webkit-box;
  363. display: -ms-flexbox;
  364. display: flex;
  365. -webkit-box-align: center;
  366. -ms-flex-align: center;
  367. align-items: center;
  368. padding: 0.375rem 0.75rem;
  369. margin-bottom: 0;
  370. font-size: 1rem;
  371. font-weight: 400;
  372. line-height: 1.5;
  373. color: #727679;
  374. text-align: center;
  375. white-space: nowrap;
  376. border-radius: 0.25rem;
  377. }
  378. .searchall-wrapper{
  379. border: 2px solid #aaaaaa;
  380. }
  381. .searchall-keywords{
  382. padding: 1rem;
  383. background-color: #F4F4F4;
  384. &:active{
  385. color: #fff;
  386. background-color: $photos-second-color;
  387. }
  388. }
  389. .searchall-input{
  390. flex: 1 1 auto;
  391. }
  392. }