_search-bar.scss 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // search-bar
  2. .search-bar{
  3. position: relative;
  4. font-family: $main-font-family;
  5. .container-searchbar{
  6. max-width: 990px;
  7. }
  8. &.search-bar-mt{
  9. margin-top: 70px;
  10. }
  11. //取消IE edge 瀏覽器輸入框輸入會有x的圖示
  12. input::-ms-clear{
  13. display: none;
  14. }
  15. ul{
  16. list-style: none;
  17. margin-block-end: 0;
  18. li{
  19. border-top-left-radius: 0.25rem;
  20. border-top-right-radius: 0.25rem;
  21. }
  22. a{
  23. color: #43484C;
  24. font-weight: bold;
  25. box-shadow: 3px 0px 3px #AAAAAA;
  26. &:hover, &.active{
  27. color: #fff;
  28. background-color: #EE7800;
  29. text-decoration: none;
  30. }
  31. }
  32. }
  33. .search-bar-keywordItem{
  34. a{
  35. color: #000;
  36. &:hover{
  37. text-decoration: none;
  38. }
  39. }
  40. }
  41. .search-bar-aside{
  42. position: fixed;
  43. top: calc(336px + 72px + 82px); //刊頭 + nav + 剩餘高度
  44. z-index: 999;
  45. transform: translateX(0%);
  46. transition: transform 300ms ease-in-out;
  47. &.is-hidden{
  48. transform: translateX(-90%);
  49. }
  50. .search-bar-block{
  51. padding: 0 8px 8px 0;
  52. transform: translateX(0%);
  53. transition: transform 300ms ease-in-out;
  54. background: rgba(255,255,255,0.75);
  55. &.is-hidden{
  56. transform: translateX(-90%);
  57. }
  58. }
  59. .search-bar-aside-text{
  60. position: absolute;
  61. top: -24px;
  62. color: #444;
  63. background: rgba(255,255,255,0.75);
  64. padding: 0 5px;
  65. width: 100%;
  66. text-align: right;
  67. cursor: pointer;
  68. }
  69. .search-bar-aside-arrow{
  70. transition: transform 300ms ease-in-out;
  71. cursor: pointer;
  72. &.is-rotate{
  73. transform: rotate(180deg);
  74. }
  75. }
  76. }
  77. }