_game_programs_dropdown.css.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .inline {
  2. display: inline-block;
  3. }
  4. .wrapper-action {
  5. width: 135px;
  6. margin-left: 20px;
  7. .button.simple {
  8. line-height: 10px;
  9. }
  10. }
  11. .wrapper-dropdown {
  12. position: relative;
  13. /*left: 10px;*/
  14. z-index: 100;
  15. margin-top: 20px;
  16. padding: 12px 15px;
  17. width: 200px;
  18. outline: none;
  19. border: 1px solid #CECECE;
  20. border-radius: 5px;
  21. background: #fff;
  22. cursor: pointer;
  23. -webkit-transition: all 0.3s ease-out;
  24. -moz-transition: all 0.3s ease-out;
  25. -ms-transition: all 0.3s ease-out;
  26. -o-transition: all 0.3s ease-out;
  27. transition: all 0.3s ease-out;
  28. &:after {
  29. position: absolute;
  30. top: 50%;
  31. right: 15px;
  32. margin-top: -3px;
  33. width: 0;
  34. height: 0;
  35. border-width: 6px 6px 0 6px;
  36. border-style: solid;
  37. border-color: #4cbeff transparent;
  38. content: "";
  39. }
  40. .dropdown {
  41. position: absolute;
  42. top: 100%;
  43. right: 0;
  44. left: 0;
  45. overflow: hidden;
  46. max-height: 0;
  47. border: 1px solid rgba(0, 0, 0, 0.2);
  48. border-top: none;
  49. border-bottom: none;
  50. border-radius: 0 0 5px 5px;
  51. background: #fff;
  52. color: #39B6D1;
  53. list-style: none;
  54. -webkit-transition: all 0.3s ease-out;
  55. -moz-transition: all 0.3s ease-out;
  56. -ms-transition: all 0.3s ease-out;
  57. -o-transition: all 0.3s ease-out;
  58. transition: all 0.3s ease-out;
  59. li {
  60. padding: 10px;
  61. a {
  62. display: block;
  63. padding: 10px 0;
  64. border-bottom: 1px solid #e6e8ea;
  65. color: #333;
  66. text-decoration: none;
  67. transition: all 0.3s ease-out;
  68. }
  69. &:last-of-type a {
  70. border: none;
  71. }
  72. i {
  73. margin-right: 5px;
  74. color: inherit;
  75. vertical-align: middle;
  76. }
  77. &:hover a {
  78. color: #57a9d9;
  79. }
  80. }
  81. }
  82. &.active {
  83. border-bottom: none;
  84. border-radius: 5px 5px 0 0;
  85. background: #39B6D1;
  86. box-shadow: none;
  87. color: white;
  88. &:after {
  89. border-color: #82d1ff transparent;
  90. }
  91. .dropdown {
  92. max-height: 400px;
  93. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  94. }
  95. }
  96. }