_search-tab.scss 9.5 KB

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