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

266 lines
4.6 KiB

7 years ago
7 years ago
5 years ago
5 years ago
5 years ago
7 years ago
7 years ago
5 years ago
7 years ago
5 years ago
5 years ago
7 years ago
6 years ago
7 years ago
  1. html {
  2. font-size:12px;
  3. }
  4. body {
  5. height:100vh;
  6. min-width:1200px;
  7. &.iframe {
  8. min-width:0;
  9. }
  10. }
  11. $header-height : 0px;
  12. $nav-height : 44px;
  13. #nav {
  14. .nav-menu {
  15. flex:1;
  16. @include display-flex;
  17. align-items: center;
  18. .logo {
  19. width:50px;
  20. height:44px;
  21. border-color:transparent !important;
  22. background-color:#354d91 !important;
  23. color:#fff;
  24. padding:13px;
  25. text-align:center;
  26. &:after {
  27. content:'';
  28. }
  29. i {
  30. margin-right:0;
  31. }
  32. }
  33. &,
  34. ul {
  35. list-style:none;
  36. padding:0;
  37. margin:0;
  38. background-color:#282828;
  39. a,
  40. span {
  41. font-size:12px;
  42. padding:13px;
  43. user-select: none;
  44. color:#b4b4b4;
  45. display:block;
  46. }
  47. li {
  48. display:block;
  49. white-space: nowrap;
  50. &.open,
  51. &:hover {
  52. > a,
  53. > span {
  54. text-decoration: none;
  55. cursor:pointer;
  56. }
  57. }
  58. &.divider {
  59. height:1px;
  60. border:0 none;
  61. background-color:#ddd;
  62. margin:3px 0;
  63. }
  64. }
  65. }
  66. > li {
  67. display:block;
  68. position:relative;
  69. > a,
  70. > span{
  71. white-space: nowrap;
  72. word-wrap:normal;
  73. padding-right:30px;
  74. position:relative;
  75. i {
  76. margin-right:5px;
  77. }
  78. &:hover {
  79. color:#fff;
  80. }
  81. &:after {
  82. content:'\f107';
  83. font-family: "Font Awesome 5 Pro" !important;
  84. position:absolute;
  85. right:10px;
  86. top:50%;
  87. transform: translateY(-50%);
  88. }
  89. }
  90. &.active {
  91. > span {
  92. color:#fff;
  93. }
  94. }
  95. > ul {
  96. display:none;
  97. position:absolute;
  98. top:44px;
  99. left:-1px;
  100. width:auto;
  101. border:1px solid #a0a0a0;
  102. border-top:0 none;
  103. min-width:calc(100% + 2px);
  104. padding:2px;
  105. box-shadow: 0 6px 12px rgba(0,0,0,.175);
  106. a,
  107. span {
  108. padding:6px 10px;
  109. color:#282828;
  110. position:relative;
  111. .badge {
  112. position:absolute;
  113. top:50%;
  114. transform:translateY(-50%);
  115. right:5px;
  116. background-color: #c7163a;
  117. color: #fff;
  118. padding: 2px 5px;
  119. }
  120. &:hover {
  121. background-color:#354D91;
  122. color:#fff;
  123. }
  124. }
  125. > li {
  126. position:relative;
  127. > ul {
  128. display:none;
  129. position:absolute;
  130. top:0;
  131. left:calc(100% + 1px);
  132. border:1px solid #a0a0a0;
  133. min-width:100%;
  134. background-color:#fff;
  135. box-shadow: 0 6px 12px rgba(0,0,0,.175);
  136. }
  137. >span {
  138. padding-right:15px;
  139. &:after {
  140. content:'\f105';
  141. font-family: "Font Awesome 5 Pro" !important;
  142. position:absolute;
  143. right:5px;
  144. top:50%;
  145. transform: translateY(-50%);
  146. }
  147. }
  148. &:hover {
  149. > a, span {
  150. background-color:#354D91;
  151. color:#fff;
  152. }
  153. > ul {
  154. display:block;
  155. }
  156. }
  157. }
  158. }
  159. &.open {
  160. > a, span {
  161. color:#282828;
  162. background-color:#fff;;
  163. z-index:3;
  164. }
  165. > ul {
  166. display:block;
  167. background-color:#fff;
  168. }
  169. }
  170. }
  171. }
  172. }
  173. #contents {
  174. padding:30px;
  175. height: calc(100vh - #{$header-height} - #{$nav-height});
  176. overflow-y:auto;
  177. }
  178. .page-header {
  179. margin-bottom:10px;
  180. border-bottom: 1px solid #ddd;
  181. .iframe & {
  182. margin-top:0;
  183. }
  184. .page-title {
  185. font-size:18px;
  186. font-weight:500;
  187. color:#282828;
  188. line-height:1em;
  189. small {
  190. color:#767676;
  191. font-size:12px;
  192. margin-left:15px;
  193. }
  194. }
  195. }
  196. .box {
  197. position:relative;
  198. padding:30px;
  199. background:#fff;
  200. border-radius:4px;
  201. border:1px solid #e6e6e6;
  202. .box-header {
  203. border-bottom:1px solid #e6e6e6;
  204. margin-bottom:15px;
  205. margin-top:-30px;
  206. position:relative;
  207. height:57px;
  208. @include clear-fix-after();
  209. .box-title {
  210. float:left;
  211. color:$brand-primary;
  212. font-size:15px;
  213. font-weight:500;
  214. padding:18px 0;
  215. small {
  216. color:#767676;
  217. font-weight:400;
  218. font-size:13px;
  219. }
  220. }
  221. .box-action {
  222. float:right;
  223. @include display-flex();
  224. height:57px;
  225. align-items: center;
  226. }
  227. }
  228. }
  229. .frame-content {
  230. padding:15px;
  231. }