common.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. // scroll
  2. ::-webkit-scrollbar {
  3. width: .5rem;
  4. height: .5rem;
  5. background: hsla(0, 0%, 100%, 0.6);
  6. }
  7. ::-webkit-scrollbar-track {
  8. border-radius: 0;
  9. }
  10. ::-webkit-scrollbar-thumb {
  11. border-radius: 0;
  12. background-color: rgba(95,95,95,.4);
  13. transition: background-color .15s;
  14. &:hover {
  15. background-color: rgba(95,95,95, .7);
  16. }
  17. }
  18. // common style
  19. .clearfix {
  20. &:before, &:after {
  21. display: table;
  22. content: " ";
  23. }
  24. &:after {
  25. clear: both;
  26. }
  27. }
  28. .list-unstyled {
  29. padding-left: 0;
  30. list-style: none;
  31. }
  32. .list-inline li {
  33. display: inline-block;
  34. padding-left: 5px;
  35. padding-right: 5px;
  36. }
  37. .hide {
  38. opacity: 0;
  39. visibility: hidden;
  40. pointer-events: none;
  41. }
  42. .pull-left {
  43. float: left;
  44. }
  45. .pull-right {
  46. float: right;
  47. }
  48. .container {
  49. width: $container-width;
  50. margin: 0 auto;
  51. }
  52. .dl-horizontal dt {
  53. float: left;
  54. width: 160px;
  55. overflow: hidden;
  56. clear: left;
  57. text-align: right;
  58. text-overflow: ellipsis;
  59. white-space: nowrap;
  60. }
  61. .dl-horizontal dd {
  62. display: block;
  63. margin-left: 180px;
  64. &:before, &:after {
  65. display: table;
  66. content: " ";
  67. }
  68. &:after {
  69. clear: both;
  70. }
  71. }
  72. .dropdown {
  73. position: relative;
  74. .dropdown-toggle {
  75. cursor: pointer;
  76. }
  77. .dropdown-menu {
  78. position: absolute;
  79. left: 0;
  80. top: 100%;
  81. min-width: 100%;
  82. display: none;
  83. background-color: $white;
  84. z-index: 100;
  85. }
  86. &:hover {
  87. .dropdown-menu {
  88. display: block;
  89. }
  90. }
  91. }
  92. // button
  93. .btn {
  94. display: inline-block;
  95. height: 36px;
  96. line-height: 1;
  97. padding: 3px 12px;
  98. margin: 0;
  99. border: 1px solid transparent;
  100. text-align: center;
  101. white-space: nowrap;
  102. vertical-align: middle;
  103. -ms-touch-action: manipulation;
  104. touch-action: manipulation;
  105. cursor: pointer;
  106. -webkit-user-select: none;
  107. -moz-user-select: none;
  108. -ms-user-select: none;
  109. &.btn-default {
  110. color: $text;
  111. background-color: $white;
  112. border-color: $dividers;
  113. }
  114. &.btn-primary {
  115. color: $white;
  116. background-color: $primary;
  117. border-color: $primary;
  118. }
  119. }
  120. // form
  121. .form-control {
  122. -webkit-appearance: none;
  123. -moz-appearance: none;
  124. appearance: none;
  125. background-color: $white;
  126. background-image: none;
  127. border: $border;
  128. color: $text;
  129. display: inline-block;
  130. font-size: inherit;
  131. height: 36px;
  132. line-height: 1;
  133. outline: none;
  134. padding: 3px 10px;
  135. width: 100%;
  136. &.input-primary {
  137. border-color: $primary;
  138. }
  139. }
  140. .input-group {
  141. position: relative;
  142. display: inline-table;
  143. width: 100%;
  144. border-collapse: separate;
  145. .form-control, .input-group-btn {
  146. display: table-cell;
  147. }
  148. .input-group-addon, .input-group-btn {
  149. position: relative;
  150. width: 1px;
  151. white-space: nowrap;
  152. vertical-align: middle;
  153. }
  154. .form-control {
  155. position: relative;
  156. z-index: 2;
  157. float: left;
  158. width: 100%;
  159. }
  160. .input-group-btn {
  161. .btn {
  162. position: relative;
  163. }
  164. }
  165. }
  166. // vue animate
  167. .slide-down-enter-active, .slide-down-leave-active {
  168. transition: all .4s cubic-bezier(0, 1.2, 1, 0.5);
  169. opacity: .7;
  170. transform: translate3d(0, 4em, 0);
  171. }
  172. .slide-down-enter, .slide-down-leave-active {
  173. opacity: .3;
  174. transform: translate3d(0, 4em, 0);
  175. }
  176. .slide-left-enter-active, .slide-left-leave-active {
  177. transition: all .2s cubic-bezier(0, 1.2, 1, 0.5);
  178. opacity: .5;
  179. transform: translate3d(2em, 0, 0);
  180. }
  181. .slide-left-enter, .slide-left-leave-active {
  182. opacity: .3;
  183. transform: translate3d(2em, 0, 0);
  184. }
  185. .slide-right-enter-active, .slide-right-leave-active {
  186. transition: all .4s cubic-bezier(0, 1.2, 1, 0.5);
  187. opacity: .5;
  188. transform: translate3d(5em, 0, 0);
  189. }
  190. .slide-right-enter, .slide-right-leave-active {
  191. opacity: .3;
  192. transform: translate3d(5em, 0, 0);
  193. }
  194. .fade-enter-active, .fade-leave-active {
  195. transition: opacity .25s
  196. }
  197. .fade-enter, .fade-leave-active {
  198. opacity: 0
  199. }
  200. .fade-move {
  201. transition: transform .25s;
  202. }
  203. .page-enter-active, .page-leave-active {
  204. transition: opacity .25s
  205. }
  206. .page-enter, .page-leave-active {
  207. opacity: 0
  208. }
  209. .module-enter-active, .module-leave-active {
  210. transition: opacity .25s
  211. }
  212. .module-enter, .module-leave-active {
  213. opacity: 0
  214. }
  215. .aside-enter-active {
  216. transition: opacity .25s cubic-bezier(1, -1.17, 1, -1.17);
  217. }
  218. .aside-leave-active {
  219. transition: opacity 0s
  220. }
  221. .aside-enter, .aside-leave-active {
  222. opacity: 0
  223. }