index.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. @import './variables.scss';
  2. @import './mixin.scss';
  3. @import './transition.scss';
  4. @import './element-ui.scss';
  5. @import './sidebar.scss';
  6. @import './btn.scss';
  7. /* 新疆语 */
  8. /*
  9. @font-face{
  10. font-family: 'UKIJ Tuz Tom';font-style:normal;font-weight:normal;src: url('ukij/UkijTuzTom.eot?#iefix');src: local('UKIJ Tuz Tom'), local('UKIJ Tuz Tom'), url('ukij/UkijTuzTom.ttf') ;
  11. }
  12. */
  13. body {
  14. height: 100%;
  15. -moz-osx-font-smoothing: grayscale;
  16. -webkit-font-smoothing: antialiased;
  17. text-rendering: optimizeLegibility;
  18. font-family: Arial, PingFang SC, Microsoft YaHei, Helvetica Neue, Helvetica, Hiragino Sans GB;
  19. }
  20. html {
  21. height: 100%;
  22. box-sizing: border-box;
  23. }
  24. #app {
  25. height: 100%;
  26. }
  27. *,
  28. *:before,
  29. *:after {
  30. box-sizing: inherit;
  31. }
  32. .no-padding {
  33. padding: 0px !important;
  34. }
  35. .padding-content {
  36. padding: 4px 0;
  37. }
  38. a:focus,
  39. a:active {
  40. outline: none;
  41. }
  42. a,
  43. a:focus,
  44. a:hover {
  45. cursor: pointer;
  46. color: inherit;
  47. text-decoration: none;
  48. }
  49. div:focus {
  50. outline: none;
  51. }
  52. .fr {
  53. float: right;
  54. }
  55. .fl {
  56. float: left;
  57. }
  58. .pr-5 {
  59. padding-right: 5px;
  60. }
  61. .pl-5 {
  62. padding-left: 5px;
  63. }
  64. .block {
  65. display: block;
  66. }
  67. .pointer {
  68. cursor: pointer;
  69. }
  70. .inlineBlock {
  71. display: block;
  72. }
  73. .clearfix {
  74. &:after {
  75. visibility: hidden;
  76. display: block;
  77. font-size: 0;
  78. content: " ";
  79. clear: both;
  80. height: 0;
  81. }
  82. }
  83. aside {
  84. background: #eef1f6;
  85. padding: 8px 24px;
  86. margin-bottom: 20px;
  87. border-radius: 2px;
  88. display: block;
  89. line-height: 32px;
  90. font-size: 16px;
  91. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  92. color: #2c3e50;
  93. -webkit-font-smoothing: antialiased;
  94. -moz-osx-font-smoothing: grayscale;
  95. a {
  96. color: #337ab7;
  97. cursor: pointer;
  98. &:hover {
  99. color: rgb(32, 160, 255);
  100. }
  101. }
  102. }
  103. //main-container全局样式
  104. .app-container {
  105. padding: 20px;
  106. min-height: 50vh;
  107. }
  108. .components-container {
  109. margin: 30px 50px;
  110. position: relative;
  111. }
  112. .pagination-container {
  113. }
  114. .text-center {
  115. text-align: center
  116. }
  117. .sub-navbar {
  118. height: 50px;
  119. line-height: 50px;
  120. position: relative;
  121. width: 100%;
  122. text-align: right;
  123. padding-right: 20px;
  124. transition: 600ms ease position;
  125. background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  126. .subtitle {
  127. font-size: 20px;
  128. color: #fff;
  129. }
  130. &.draft {
  131. background: #d0d0d0;
  132. }
  133. &.deleted {
  134. background: #d0d0d0;
  135. }
  136. }
  137. .link-type,
  138. .link-type:focus {
  139. color: #337ab7;
  140. cursor: pointer;
  141. &:hover {
  142. color: rgb(32, 160, 255);
  143. }
  144. }
  145. .filter-container {
  146. padding-bottom: 10px;
  147. .filter-item {
  148. display: inline-block;
  149. vertical-align: middle;
  150. margin-bottom: 10px;
  151. }
  152. }
  153. //refine vue-multiselect plugin
  154. .multiselect {
  155. line-height: 16px;
  156. }
  157. .multiselect--active {
  158. z-index: 1000 !important;
  159. }
  160. .grid-box{
  161. padding: 20px;
  162. cursor: pointer
  163. }
  164. .grid-box .title{
  165. font-weight: 700;
  166. font-size: 18px;
  167. text-overflow:ellipsis;white-space:nowrap; width: 100%;overflow:hidden;
  168. }
  169. .grid-box .summary{
  170. color: #666; text-overflow:ellipsis;white-space:nowrap; width: 100%;overflow:hidden;
  171. line-height: 28px;
  172. }
  173. .grid-box .cat{
  174. color: #4377fb
  175. }
  176. // 题目及答题样式表
  177. .qu-box{
  178. margin-bottom: 20px;
  179. }
  180. .sub-box{
  181. margin: 20px 0px 20px 0px;
  182. }
  183. .qu-box > .split{
  184. margin-bottom: 20px;
  185. height: 10px;
  186. border-bottom: #eee 3px dotted;
  187. }
  188. .qu-box > .score-bar{
  189. display: flex;
  190. background: #eee;
  191. line-height: 25px;
  192. padding: 10px;
  193. margin-bottom: 20px
  194. }
  195. .qu-box > .score-bar > .mark{
  196. width: 50px;
  197. display: flex;
  198. justify-content: flex-end;
  199. align-items: center;
  200. }
  201. .qu-box > .score-bar > .mark > .active{
  202. color: #ff0000;
  203. }
  204. .qu-item{
  205. display: flex;
  206. margin-bottom: 20px;
  207. }
  208. .qu-item > .sub{
  209. width: 20px;
  210. font-weight: 700;
  211. color: #5794f7;
  212. font-size: 16px;
  213. font-style: italic;
  214. display: flex;
  215. align-items: flex-start;
  216. line-height: 24px;
  217. }
  218. .qu-item > .num{
  219. display: inline-block;
  220. background: url(../assets/web/images/quesbg.png) no-repeat 100% 100%;
  221. background-size: contain;
  222. height: 30px;
  223. width: 30px;
  224. line-height: 25px;
  225. color: #fff;
  226. font-size: 14px;
  227. text-align: center;
  228. margin-right: 15px;
  229. flex-shrink: 0;
  230. }
  231. .qu-item > .content{
  232. flex-grow: 1;
  233. align-items: flex-start;
  234. }
  235. .qu-item > .content p{
  236. line-height: 24px;
  237. margin-top: -0px;
  238. }
  239. .qu-answer {
  240. }
  241. .qu-answer > .item{
  242. display: flex;
  243. border: #eee 1px solid;
  244. border-radius: 5px;
  245. line-height: 20px;
  246. margin: 15px 0px 15px 0px;
  247. padding: 10px;
  248. cursor: pointer;
  249. font-size: 14px;
  250. }
  251. .qu-answer > .active{
  252. border: #5794f7 1px solid;
  253. }
  254. .qu-answer > .item > .tag{
  255. width: 10px;
  256. font-weight: 700;
  257. color: #0a84ff;
  258. display: flex;
  259. align-items: center;
  260. }
  261. .qu-answer > .item > .content{
  262. flex-grow: 1;
  263. padding-left: 10px;
  264. }
  265. .qu-answer > .item > .right{
  266. width: 50px;
  267. flex-shrink: 0;
  268. }
  269. .as-box{
  270. border: #eee 1px solid;
  271. border-radius: 5px;
  272. line-height: 24px;
  273. margin: 5px 0px 10px 0px;
  274. padding: 10px;
  275. font-size: 14px;
  276. color: #555;
  277. background: #f5f5f5;
  278. }
  279. // 答题卡样式
  280. .card-box{
  281. display: flex;
  282. flex-wrap: wrap;
  283. align-content: flex-start;
  284. margin-left: -5px;
  285. margin-top: 10px;
  286. }
  287. .card-box .item{
  288. width: 30px;
  289. height: 40px;
  290. background: #eee;
  291. border-radius: 2px;
  292. font-size: 12px;
  293. align-items: center;
  294. cursor: pointer;
  295. margin:5px 5px 10px 5px
  296. }
  297. .card-box .item .num{
  298. text-align: center;
  299. color: #555;
  300. font-weight: 700;
  301. padding: 3px;
  302. height: 20px;
  303. line-height: 14px !important;
  304. }
  305. .card-box .item .current{
  306. border-radius: 2px;
  307. background: #FFBA00;
  308. color: #fff !important;
  309. }
  310. .card-box .item .flag{
  311. text-align: center;
  312. border-top: #fff 1px solid;
  313. padding: 3px;
  314. display: flex;
  315. align-items: center;
  316. justify-content: center;
  317. background: #eee;
  318. }
  319. .card-box .item .right{
  320. border-radius: 2px;
  321. background: #1890ff;
  322. color: #fff !important;
  323. }
  324. .card-box .item .error{
  325. border-radius: 2px;
  326. background: #FF4B50;
  327. color: #fff !important;
  328. }
  329. // 试卷预览、试卷编辑、阅卷页面左右结构
  330. .list-box{
  331. display: flex;
  332. padding-bottom: 20px;
  333. border-bottom: #eee 3px dotted;
  334. margin-bottom: 20px
  335. }
  336. .list-qu{
  337. flex-grow: 1;
  338. padding-right: 20px;
  339. }
  340. .list-opt{
  341. width: 200px;
  342. text-align: center;
  343. font-size: 12px;
  344. line-height: 36px;
  345. flex-shrink: 0;
  346. }
  347. .list-sub-box{
  348. display: flex;
  349. margin-bottom: 20px;
  350. border: #efefef 1px solid;
  351. border-radius: 5px;
  352. padding: 10px;
  353. margin-right: -20px;
  354. }
  355. .list-sub-qu{
  356. flex-grow: 1;
  357. padding-right: 20px;
  358. }
  359. .list-sub-opt{
  360. width: 200px;
  361. text-align: center;
  362. font-size: 12px;
  363. line-height: 36px;
  364. flex-shrink: 0;
  365. }
  366. .el-dialog{
  367. display: flex;
  368. display: -ms-flex; /* 兼容IE */
  369. flex-direction: column;
  370. -ms-flex-direction: column; /* 兼容IE */
  371. margin:0 !important;
  372. position:absolute;
  373. top:50%;
  374. left:50%;
  375. transform:translate(-50%,-50%);
  376. max-height:calc(100% - 30px);
  377. max-width:calc(100% - 30px);
  378. }
  379. .el-dialog .el-dialog__body{
  380. max-height: 100%;
  381. flex: 1;
  382. -ms-flex: 1 1 auto; /* 兼容IE */
  383. overflow-y: auto;
  384. overflow-x: hidden;
  385. }