main.scss 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. $main-color: #EE7800;
  2. // @media screen and (min-width: 992px) and (max-width: 1260px){
  3. // .navbar{
  4. // .navbar-nav{
  5. // .nav-link{
  6. // padding-left: 10px; //避免縮小螢幕主選單有折行問題
  7. // padding-right: 10px; //避免縮小螢幕主選單有折行問題
  8. // }
  9. // }
  10. // }
  11. // }
  12. @media screen and (min-width: 1200px){
  13. .navbar-brand-block{
  14. display: inline-block;
  15. position: absolute;
  16. left: 8px;
  17. @media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){
  18. position: relative;
  19. }
  20. }
  21. .navbar-collapse-block{
  22. margin-left: auto;
  23. margin-right: auto;
  24. }
  25. .nav-user-block{
  26. display: flex;
  27. justify-content: flex-end;
  28. position: absolute;
  29. right: 8px;
  30. @media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){
  31. position: relative;
  32. }
  33. }
  34. // 小裝置保持logo置中
  35. .navbar-brand-block-sm{
  36. display: none;
  37. }
  38. .nb-mobile, .nb-mobile-icon{
  39. display: none;
  40. }
  41. }
  42. @media screen and (min-width: 992px) and (max-width: 1199px){
  43. .navbar-brand-block, .navbar-collapse-block, .nav-user-block{
  44. display: none;
  45. }
  46. .navbar-brand-block-sm{
  47. display: inline-block;
  48. margin-left: auto;
  49. margin-right: auto;
  50. }
  51. .nb-mobile-icon{
  52. display: block;
  53. .bars{
  54. display: block;
  55. &.active{
  56. display: none;
  57. }
  58. }
  59. .arrow{
  60. display: none;
  61. &.active{
  62. display: block;
  63. }
  64. }
  65. }
  66. }
  67. @media screen and (min-width: 992px){
  68. // .navbar-brand-block{
  69. // display: inline-block;
  70. // position: absolute;
  71. // left: 8px;
  72. // @media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){
  73. // position: relative;
  74. // }
  75. // }
  76. // .navbar-collapse-block{
  77. // margin-left: auto;
  78. // margin-right: auto;
  79. // }
  80. // .nav-user-block{
  81. // display: flex;
  82. // justify-content: flex-end;
  83. // position: absolute;
  84. // right: 8px;
  85. // @media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){
  86. // position: relative;
  87. // }
  88. // }
  89. //小裝置保持logo置中
  90. // .navbar-brand-block-sm{
  91. // display: none;
  92. // }
  93. body{
  94. overflow: auto;
  95. }
  96. // .nb-mobile, .nb-mobile-icon{
  97. // display: none;
  98. // }
  99. .dropdown-wrapper{
  100. display: flex !important;
  101. }
  102. .st-mobile, .footer-fix, .searchall{
  103. display: none;
  104. }
  105. .top-designer, .search-bar, .search-tab{
  106. display: block;
  107. }
  108. }
  109. @media screen and (min-width: 768px) and (max-width: 992px){
  110. //列表 gotop btn
  111. .gotop-btn-wrapper{
  112. right: 2%;
  113. bottom: 10%;
  114. z-index: 999;
  115. }
  116. .navbar-brand-block, .navbar-collapse-block, .nav-user-block{
  117. display: none;
  118. }
  119. .navbar-brand-block-sm{
  120. display: inline-block;
  121. margin-left: auto;
  122. margin-right: auto;
  123. }
  124. .nb-mobile-icon{
  125. display: block;
  126. .bars{
  127. display: block;
  128. &.active{
  129. display: none;
  130. }
  131. }
  132. .arrow{
  133. display: none;
  134. &.active{
  135. display: block;
  136. }
  137. }
  138. }
  139. .search-tab-itemBtn{
  140. .dropdown-wrapper{
  141. display: -webkit-box !important;
  142. }
  143. }
  144. .item-card{
  145. .item-card-body{
  146. .item-card-media{
  147. left: 22%;
  148. }
  149. }
  150. }
  151. .footer .footer-media{
  152. color: #3b5998;
  153. }
  154. //關鍵字 Auto Complete
  155. .ui-autocomplete {
  156. width: 100%;
  157. max-height: 49vh;
  158. overflow-y: auto;
  159. overflow-x: hidden;
  160. position: absolute;
  161. top: 55px !important;
  162. left: 0!important;
  163. margin-block-start: 0em;
  164. margin-block-end: 0em;
  165. margin-inline-start: 0px;
  166. margin-inline-end: 0px;
  167. padding-inline-start: 0px;
  168. }
  169. .keywords-autocomplete{
  170. width: 100%;
  171. height: 100%;
  172. position: absolute;
  173. -webkit-transform: translateY(-25%);
  174. transform: translateY(-25%);
  175. .list-group-item{
  176. -webkit-box-shadow: 1px 1px 1px #ccc;
  177. box-shadow: 1px 1px 1px #ccc ;
  178. background: rgba(255,255,255,0.98);
  179. border: none;
  180. }
  181. .list-group-item-action{
  182. &:hover{
  183. z-index: 0;
  184. cursor: pointer;
  185. }
  186. }
  187. }
  188. }
  189. @media screen and (min-width: 576px) and (max-width: 768px){
  190. .member{
  191. .item-card-member{
  192. .item-card-img-member{
  193. width: 100%;
  194. height: 360px;
  195. background-size: cover;
  196. background-repeat: no-repeat;
  197. background-position: center;
  198. }
  199. }
  200. }
  201. .navbar-brand-block, .navbar-collapse-block, .nav-user-block{
  202. display: none;
  203. }
  204. .navbar-brand-block-sm{
  205. display: inline-block;
  206. margin-left: auto;
  207. margin-right: auto;
  208. }
  209. .nb-mobile-icon{
  210. display: block;
  211. .bars{
  212. display: block;
  213. &.active{
  214. display: none;
  215. }
  216. }
  217. .arrow{
  218. display: none;
  219. &.active{
  220. display: block;
  221. }
  222. }
  223. }
  224. .nb-mobile{
  225. &.active{
  226. position: fixed;
  227. bottom: 0;
  228. }
  229. }
  230. #navbarSupportedContent{
  231. display: none;
  232. }
  233. .search-tab-itemBtn{
  234. .dropdown-wrapper{
  235. display: -webkit-box !important;
  236. }
  237. }
  238. .item-card {
  239. .item-card-body {
  240. // display: none; //photos使用
  241. .item-card-media {
  242. left: 40%;
  243. }
  244. }
  245. .item-card-img {
  246. height: 210px;
  247. .play {
  248. top: 39%;
  249. left: 39%;
  250. width: 40px;
  251. height: 40px;
  252. }
  253. }
  254. .item-card-product {
  255. background-repeat: no-repeat;
  256. background-position: center center;
  257. }
  258. }
  259. // 關鍵字 Auto Complete
  260. .ui-autocomplete {
  261. width: 100%;
  262. max-height: 49vh;
  263. overflow-y: auto;
  264. overflow-x: hidden;
  265. position: absolute;
  266. top: 55px !important;
  267. left: 0!important;
  268. margin-block-start: 0em;
  269. margin-block-end: 0em;
  270. margin-inline-start: 0px;
  271. margin-inline-end: 0px;
  272. padding-inline-start: 0px;
  273. }
  274. .keywords-autocomplete{
  275. width: 100%;
  276. height: 100%;
  277. position: absolute;
  278. -webkit-transform: translateY(-25%);
  279. transform: translateY(-25%);
  280. .list-group-item{
  281. -webkit-box-shadow: 1px 1px 1px #ccc;
  282. box-shadow: 1px 1px 1px #ccc ;
  283. background: rgba(255,255,255,0.98);
  284. border: none;
  285. }
  286. .list-group-item-action{
  287. &:hover{
  288. z-index: 0;
  289. cursor: pointer;
  290. }
  291. }
  292. }
  293. }
  294. @media screen and (max-width: 576px){
  295. //列表 gotop btn
  296. .gotop-btn-wrapper{
  297. right: 3%;
  298. bottom: 10%;
  299. z-index: 999;
  300. }
  301. .member{
  302. .item-card-member{
  303. .item-card-img-member{
  304. width: 100%;
  305. height: 360px;
  306. background-size: cover;
  307. background-repeat: no-repeat;
  308. background-position: center;
  309. }
  310. }
  311. }
  312. .navbar-brand-block, .navbar-collapse-block, .nav-user-block{
  313. display: none;
  314. }
  315. .navbar-brand-block-sm{
  316. display: inline-block;
  317. margin-left: auto;
  318. margin-right: auto;
  319. }
  320. .nb-mobile-icon{
  321. display: block;
  322. .bars{
  323. display: block;
  324. &.active{
  325. display: none;
  326. }
  327. }
  328. .arrow{
  329. display: none;
  330. &.active{
  331. display: block;
  332. }
  333. }
  334. }
  335. // .nb-mobile{
  336. // &.active{
  337. // position: fixed;
  338. // bottom: 0;
  339. // }
  340. // }
  341. .search-tab-itemBtn{
  342. .dropdown-wrapper{
  343. display: -webkit-box !important;
  344. }
  345. }
  346. .item-card {
  347. .item-card-body {
  348. // display: none; //photos使用
  349. .item-card-media {
  350. left: 37%;
  351. }
  352. }
  353. .item-card-img {
  354. height: 210px;
  355. .play {
  356. top: 45%;
  357. left: 45%;
  358. width: 40px;
  359. height: 40px;
  360. }
  361. }
  362. .item-card-product {
  363. background-repeat: no-repeat;
  364. background-position: center center;
  365. }
  366. }
  367. // 關鍵字 Auto Complete
  368. .ui-autocomplete {
  369. width: 100%;
  370. max-height: 49vh;
  371. overflow-y: auto;
  372. overflow-x: hidden;
  373. position: absolute;
  374. top: 55px !important;
  375. left: 0!important;
  376. margin-block-start: 0em;
  377. margin-block-end: 0em;
  378. margin-inline-start: 0px;
  379. margin-inline-end: 0px;
  380. padding-inline-start: 0px;
  381. }
  382. .keywords-autocomplete{
  383. width: 100%;
  384. height: 100%;
  385. position: absolute;
  386. -webkit-transform: translateY(-25%);
  387. transform: translateY(-25%);
  388. .list-group-item{
  389. -webkit-box-shadow: 1px 1px 1px #ccc;
  390. box-shadow: 1px 1px 1px #ccc ;
  391. background: rgba(255,255,255,0.98);
  392. border: none;
  393. }
  394. .list-group-item-action{
  395. &:hover{
  396. z-index: 0;
  397. cursor: pointer;
  398. }
  399. }
  400. }
  401. }