You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

element-ui.scss 6.3 kB

5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. /*
  2. * Copyright 2019-2020 Zheng Jie
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. .el-button--primary {
  17. color: $primaryColor;
  18. background-color: $primaryPlainBgColor;
  19. border-color: $primaryBorderColor;
  20. &.is-disabled,
  21. &.is-disabled:hover,
  22. &.is-disabled:focus,
  23. &.is-disabled:active {
  24. color: #8295eb;
  25. background-color: $primaryPlainBgColor;
  26. border-color: #d5dcf8;
  27. }
  28. }
  29. // danger button
  30. .el-button--danger {
  31. color: #ff4949;
  32. background-color: #ffeded;
  33. border-color: #ffb6b6;
  34. &.is-disabled,
  35. &.is-disabled:hover,
  36. &.is-disabled:focus,
  37. &.is-disabled:active {
  38. color: #ff9292;
  39. background-color: #ffeded;
  40. border-color: #ffdbdb;
  41. }
  42. }
  43. .el-button.danger {
  44. color: $red;
  45. &:hover,
  46. &:active {
  47. color: $red;
  48. }
  49. }
  50. // el-radio border
  51. .el-radio.is-bordered {
  52. &.is-checked,
  53. &:hover {
  54. border-color: $primaryBorderColor;
  55. }
  56. }
  57. // radio-button
  58. .el-radio-button__inner {
  59. padding: 8px 25px;
  60. }
  61. .el-checkbox__inner,
  62. .el-radio__inner {
  63. border-color: $borderColorDark;
  64. }
  65. .el-radio-button__orig-radio {
  66. &:checked + .el-radio-button__inner,
  67. &:hover + .el-radio-button__inner {
  68. color: $primaryColor;
  69. background-color: $primaryPlainBgColor;
  70. border-color: $primaryBorderColor;
  71. box-shadow: -1px 0 0 0 $primaryBorderColor;
  72. }
  73. &:checked:hover + .el-radio-button__inner {
  74. color: #fff;
  75. background-color: $primaryHoverColor;
  76. border-color: $primaryHoverColor;
  77. box-shadow: -1px 0 0 0 $primaryHoverColor;
  78. }
  79. }
  80. // checkbox-button
  81. .el-checkbox-button {
  82. &.is-checked .el-checkbox-button__inner,
  83. .el-checkbox-button__inner:hover {
  84. color: $primaryColor;
  85. background-color: $primaryPlainBgColor;
  86. border-color: $primaryBorderColor !important;
  87. box-shadow: -1px 0 0 0 $primaryBorderColor;
  88. }
  89. &.is-focus .el-checkbox-button__inner {
  90. border-color: $borderColorBase;
  91. }
  92. &.is-checked .el-checkbox-button__inner:hover {
  93. color: #fff;
  94. background-color: $primaryHoverColor;
  95. border-color: $primaryHoverColor;
  96. box-shadow: -1px 0 0 0 $primaryHoverColor;
  97. }
  98. }
  99. // checkbox__input
  100. .el-checkbox__input {
  101. .el-checkbox__inner:hover {
  102. border-color: $primaryBorderColor;
  103. }
  104. &.is-checked .el-checkbox__inner {
  105. background-color: $primaryPlainBgColor;
  106. border-color: $primaryBorderColor;
  107. &::after {
  108. border-color: $primaryColor;
  109. }
  110. }
  111. &.is-indeterminate .el-checkbox__inner {
  112. background-color: $primaryPlainBgColor;
  113. border-color: $primaryBorderColor;
  114. &::before {
  115. background-color: $primaryColor;
  116. }
  117. }
  118. &.is-focus .el-checkbox__inner {
  119. border-color: $borderColorBase;
  120. }
  121. }
  122. // radio
  123. .el-radio__input {
  124. .el-radio__inner:hover {
  125. border-color: $primaryBorderColor;
  126. }
  127. &.is-checked .el-radio__inner {
  128. background-color: $primaryPlainBgColor;
  129. border-color: $primaryBorderColor;
  130. &::after {
  131. background-color: $primaryColor;
  132. }
  133. }
  134. }
  135. // switch
  136. .el-switch__core {
  137. background-color: #c0c4cc;
  138. }
  139. .el-switch {
  140. .el-switch__core:hover {
  141. border-color: $primaryBorderColor;
  142. }
  143. &.is-checked .el-switch__core {
  144. background-color: $primaryPlainBgColor;
  145. border-color: $primaryBorderColor;
  146. &::after {
  147. background-color: $primaryColor;
  148. }
  149. }
  150. }
  151. .el-upload {
  152. input[type="file"] {
  153. display: none !important;
  154. }
  155. }
  156. .el-upload__input {
  157. display: none;
  158. }
  159. .el-dialog {
  160. position: relative;
  161. left: 0;
  162. margin: 0 auto;
  163. transform: none;
  164. }
  165. // dropdown
  166. .el-dropdown {
  167. cursor: pointer;
  168. }
  169. .el-dropdown-menu {
  170. a {
  171. display: block;
  172. }
  173. }
  174. .el-range-editor.el-input__inner {
  175. display: inline-flex !important;
  176. }
  177. .el-submenu__title,
  178. .el-menu-item {
  179. font-size: 16px;
  180. }
  181. .el-table {
  182. color: #666;
  183. thead {
  184. color: #666;
  185. }
  186. .highlight-row {
  187. background: $primaryPlainBgColor;
  188. }
  189. }
  190. .el-button {
  191. padding: 8px 25px;
  192. &.is-round {
  193. padding: 8px 10px;
  194. }
  195. &--text {
  196. padding: 8px 0;
  197. }
  198. &--medium {
  199. padding: 10px 20px;
  200. }
  201. }
  202. .el-tag {
  203. height: 22px;
  204. padding: 0 7px;
  205. font-size: 12px;
  206. line-height: 20px;
  207. }
  208. .el-input__inner {
  209. height: 32px;
  210. }
  211. .el-input-number {
  212. line-height: 30px;
  213. }
  214. .el-form-item__label {
  215. line-height: 32px;
  216. }
  217. .el-form-item__content {
  218. line-height: 32px;
  219. }
  220. .el-input__icon {
  221. line-height: 32px;
  222. }
  223. .el-input-number.is-controls-right .el-input-number__increase,
  224. .el-input-number.is-controls-right .el-input-number__decrease {
  225. line-height: 15px;
  226. }
  227. .el-range-editor .el-range__icon,
  228. .el-range-editor .el-range__close-icon,
  229. .el-date-editor .el-range-separator {
  230. line-height: 24px;
  231. }
  232. .el-table-column--selection .cell {
  233. padding-right: 10px;
  234. padding-left: 10px;
  235. }
  236. .el-border__default {
  237. border: 1px solid $borderColorDark;
  238. }
  239. .el-link {
  240. font-weight: normal;
  241. }
  242. .el-input__count {
  243. background: transparent !important;
  244. }
  245. .el-drawer__body {
  246. overflow: auto;
  247. }
  248. .block-label-group {
  249. label {
  250. display: block;
  251. margin-bottom: 8px;
  252. }
  253. }
  254. .item__label {
  255. padding: 0 12px 0 0;
  256. font-size: 14px;
  257. color: $labelColor;
  258. }
  259. .el-icon-question {
  260. cursor: pointer;
  261. }
  262. .el-tooltip__popper {
  263. max-width: 50%;
  264. }
  265. .info-alert.is-light {
  266. margin-bottom: 20px;
  267. background-color: $primaryBg;
  268. .el-alert__content {
  269. width: 100%;
  270. }
  271. .el-alert__icon {
  272. color: $primaryColor;
  273. }
  274. .slot-content {
  275. display: flex;
  276. justify-content: space-between;
  277. width: 100%;
  278. color: #000;
  279. a {
  280. color: $primaryColor;
  281. }
  282. }
  283. }
  284. .el-tooltip__popper.is-light {
  285. border: none;
  286. box-shadow: rgba(0, 0, 0, 0.15) 0 2px 8px 0;
  287. .popper__arrow {
  288. border: none;
  289. }
  290. }
  291. .el-tabs-large .el-tabs__nav .el-tabs__item {
  292. font-size: 16px;
  293. }
  294. .el-card__footer {
  295. padding-top: 20px;
  296. margin-top: 8px;
  297. border-top: 1px solid #f0f0f0;
  298. }
  299. .el-form-item-explain {
  300. min-height: 24px;
  301. font-size: 14px;
  302. line-height: 1.5715;
  303. color: rgba(0, 0, 0, 0.45);
  304. }

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能