ivprog-assessment.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. @font-face {
  2. font-family: 'NimbusSanLConRegular';
  3. src: url(fonts/NimbusSanLConRegular.ttf) format('truetype');
  4. font-weight: normal;
  5. font-style: normal;
  6. }
  7. @font-face {
  8. font-family: 'NimbusSanLConBold';
  9. src: url(fonts/NimbusSanLConBold.ttf) format('truetype');
  10. font-weight: bold;
  11. font-style: normal;
  12. }
  13. @font-face {
  14. font-family: 'TeXGyreHerosRegular';
  15. src: url(fonts/texgyreheros-regular.otf) format('opentype');
  16. font-weight: normal;
  17. font-style: normal;
  18. }
  19. body {
  20. font-family: 'TeXGyreHerosRegular';
  21. background-color: #b9c7ca;
  22. margin-left: 2rem;
  23. }
  24. .details-body > .details-header > h2 {margin-bottom: 0.5rem;}
  25. .details-body > .details-header > p {
  26. padding-left: 1rem;
  27. margin: 0;
  28. }
  29. table td { font-size: 14pt;}
  30. .stringdiff-delete, .stringdiff-insert {font-weight: bold;}
  31. .stringdiff-insert, .assessment-input-read {color: #22a222}
  32. .stringdiff-delete {
  33. text-decoration: line-through;
  34. color: #d02929
  35. }
  36. .assistant-div-left {
  37. float: left;
  38. width: calc(50% - 40px);
  39. }
  40. .assistant-div-right {
  41. float: right;
  42. width: calc(50% - 40px);
  43. margin-right: 25px;
  44. }
  45. .details-body h3 {
  46. margin-top: 0.5rem;
  47. margin-bottom: 0.5rem;
  48. }
  49. .detaisl-div-table {
  50. padding-left: 1rem;
  51. margin-top: 1rem;
  52. }
  53. .assessment-output-table {
  54. border-collapse: collapse;
  55. border-style: hidden;
  56. }
  57. .assessment-output-table tr:nth-child(odd) {background: #CCC}
  58. .assessment-output-table tr:nth-child(even) {background: #f7f2c9}
  59. .assessment-output-table tr > th {
  60. background-color: #000;
  61. color: #fff;
  62. font-family: 'NimbusSansLBoldCond';
  63. font-weight: bold;
  64. font-style: normal;
  65. letter-spacing: .05rem;
  66. }
  67. .assessment-output-table td, .assessment-output-table th {
  68. border-left: 1px solid black;
  69. padding: 0.5rem;
  70. text-align: center;
  71. max-width: 16rem;
  72. font-family: 'NimbusSanLConRegular';
  73. vertical-align: middle;
  74. letter-spacing: .05rem;
  75. }
  76. .assessment-string-expected, .assessment-string-generated, .assessment-string-diff {text-align: left;}
  77. p.assessment-failed-execution {padding-left: 1rem;}
  78. .assessment-failed-case {
  79. color:#FF1212;
  80. padding-right: 1rem;
  81. }
  82. .assessment-input-unread {color: #d02929}
  83. .assessment-number-result-failed, .assessment-bool-result-failed {color: #d02929}
  84. .assessment-number-result, .assessment-bool-result, .assessment-string-result {color: #22a222}
  85. .assessment-popup {
  86. position: relative;
  87. display: inline-block;
  88. cursor: pointer;
  89. }
  90. .assessment-popup .assessment-popuptext {
  91. visibility: hidden;
  92. width: 160px;
  93. background-color: #555;
  94. color: #fff;
  95. text-align: center;
  96. border-radius: 6px;
  97. padding: 8px 0;
  98. position: absolute;
  99. z-index: 1;
  100. bottom: 125%;
  101. left: 50%;
  102. margin-left: -80px;
  103. }
  104. .assessment-popup .assessment-popuptext::after {
  105. content: "";
  106. position: absolute;
  107. top: 100%;
  108. left: 50%;
  109. margin-left: -5px;
  110. border-width: 5px;
  111. border-style: solid;
  112. border-color: #555 transparent transparent transparent;
  113. }
  114. .assessment-popup:hover .assessment-popuptext {
  115. visibility: visible;
  116. -webkit-animation: fadeIn 1s;
  117. animation: fadeIn 1s;
  118. }
  119. @-webkit-keyframes fadeIn {
  120. from {opacity: 0;}
  121. to {opacity: 1;}
  122. }
  123. @keyframes fadeIn {
  124. from {opacity: 0;}
  125. to {opacity:1 ;}
  126. }
  127. .assessment-empty-output {
  128. height: 1.5rem;
  129. width: 1.5rem;
  130. }