_object.scss 5.2 KB

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