_object.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. .o-button {
  2. display: inline-flex;
  3. justify-content: center;
  4. align-items: center;
  5. min-width: 60px;
  6. height: $height;
  7. padding: 0 $padding;
  8. color: #fff;
  9. font-size: $font-size--sm;
  10. line-height: 1;
  11. border: none;
  12. border-radius: $radius--sm;
  13. background-color: $blue;
  14. transition: background-color .4s;
  15. user-select: none;
  16. cursor: pointer;
  17. &--sm {
  18. height: $height--sm;
  19. }
  20. &:hover {
  21. background-color: rgba($blue, .8);
  22. }
  23. &:active {
  24. background-color: darken($blue, 5%);
  25. }
  26. &__icon {
  27. font-size: $font-size--md;
  28. margin-right: $spacing--xs;
  29. }
  30. &--cancel {
  31. color: $gray--dark;
  32. background-color: $gray--light;
  33. &:hover,
  34. &:active {
  35. color: $primary;
  36. background-color: $blue--light;
  37. }
  38. &:active {
  39. outline: 1px solid #3a8ee6;
  40. }
  41. }
  42. }
  43. .o-pagination-button {
  44. border-color: $blue;
  45. background-color: $blue;
  46. &:hover {
  47. border-color: rgba($blue, .8);
  48. background-color: rgba($blue, .8);
  49. }
  50. }
  51. .o-tag {
  52. min-width: 80px;
  53. text-align: center;
  54. }
  55. .o-next {
  56. display: inline-block;
  57. width: 1em;
  58. height: 1em;
  59. text-align: center;
  60. &::before {
  61. content: '';
  62. display: inline-block;
  63. border-top: .5em solid transparent;
  64. border-bottom: .5em solid transparent;
  65. border-left: .68em solid currentcolor;
  66. }
  67. &::after {
  68. content: '';
  69. display: inline-block;
  70. height: 1em;
  71. border-left: .1em solid currentcolor;
  72. }
  73. }
  74. .o-thumbnail {
  75. display: inline-flex;
  76. justify-content: center;
  77. align-items: center;
  78. width: 80px !important;
  79. height: 45px !important;
  80. }
  81. .o-select-option {
  82. max-width: 400px;
  83. }
  84. .o-date-picker {
  85. &.hide-footer {
  86. .el-picker-panel__footer .el-button--text {
  87. display: none;
  88. }
  89. }
  90. }
  91. .o-upload {
  92. display: flex;
  93. .el-upload {
  94. display: flex;
  95. flex: 1 1 auto;
  96. }
  97. .el-upload-dragger {
  98. flex: 1 1 0;
  99. display: flex;
  100. flex-direction: column;
  101. justify-content: center;
  102. align-items: center;
  103. min-width: 0;
  104. width: auto;
  105. height: auto;
  106. padding: $spacing;
  107. color: $gray;
  108. font-size: $font-size--sm;
  109. font-weight: bold;
  110. &.is-dragover {
  111. border-width: 1px;
  112. }
  113. }
  114. .o-upload__icon {
  115. margin: 0;
  116. color: $blue;
  117. font-size: $font-size--xl;
  118. line-height: 1;
  119. }
  120. &__accept {
  121. margin-top: $spacing--xs;
  122. font-size: $font-size--xs;
  123. font-weight: normal;
  124. }
  125. }
  126. .o-info {
  127. padding: 0 $spacing;
  128. color: $info--dark;
  129. line-height: normal;
  130. & > div + div {
  131. margin-top: $spacing--3xs;
  132. }
  133. }
  134. .o-expand-icon {
  135. transition: transform 0.2s;
  136. &.expand {
  137. transform: rotate(90deg);
  138. }
  139. }
  140. .o-tab {
  141. display: inline-flex;
  142. align-items: center;
  143. vertical-align: bottom;
  144. &__icon {
  145. padding: 0 $spacing--xs;
  146. margin-left: -$spacing--xs;
  147. color: $blue;
  148. font-size: 1.4em;
  149. font-weight: bold;
  150. line-height: 1;
  151. }
  152. }
  153. .o-icon {
  154. display: inline-flex;
  155. justify-content: center;
  156. align-items: center;
  157. width: 32px;
  158. height: 32px;
  159. font-size: 18px;
  160. @extend .has-bg;
  161. &.lg {
  162. width: 64px;
  163. height: 64px;
  164. font-size: 32px;
  165. }
  166. &.md {
  167. width: 48px;
  168. height: 48px;
  169. font-size: 24px;
  170. }
  171. &.medium {
  172. width: 32px;
  173. height: 32px;
  174. font-size: 18px;
  175. }
  176. &.sm {
  177. width: 24px;
  178. height: 24px;
  179. font-size: 16px;
  180. }
  181. &--hover {
  182. border-radius: 50%;
  183. transition: background-color 0.4s;
  184. &:hover {
  185. background-color: $gray--light;
  186. }
  187. }
  188. }
  189. .o-link {
  190. display: inline-block;
  191. color: $gray;
  192. font-size: $font-size--xs;
  193. &::after {
  194. content: attr(href);
  195. }
  196. &:hover {
  197. color: $blue;
  198. text-decoration: underline;
  199. }
  200. }
  201. .o-simple-video {
  202. object-fit: contain;
  203. &::-webkit-media-controls-enclosure {
  204. display: none;
  205. }
  206. }
  207. .o-video {
  208. position: relative;
  209. padding-top: $padding--16_9;
  210. border-radius: $radius--sm;
  211. background-color: #000;
  212. overflow: hidden;
  213. &.controls:hover,
  214. &.mask {
  215. .o-video__mask {
  216. display: inline-block;
  217. }
  218. }
  219. &.offline {
  220. background: url("~@/assets/image_offline.svg") 0 0 / 100% 100% no-repeat;
  221. .o-video__mask {
  222. display: none;
  223. }
  224. }
  225. &__player {
  226. position: absolute;
  227. top: 0;
  228. left: 0;
  229. width: 100%;
  230. height: 100%;
  231. }
  232. &__mask {
  233. display: none;
  234. position: absolute;
  235. top: 0;
  236. left: 0;
  237. width: 100%;
  238. height: 100%;
  239. background-color: rgba(0, 0, 0, 0.3);
  240. }
  241. &__btn {
  242. position: absolute;
  243. left: 50%;
  244. top: 50%;
  245. width: 64px;
  246. height: 64px;
  247. color: #fff;
  248. font-size: 48px;
  249. border-radius: 50%;
  250. background-color: rgba(#000, 0.5);
  251. transform: translate(-50%, -50%);
  252. }
  253. }