_base.less 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. @footer-margin: 40px;
  2. body {
  3. font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
  4. background-color: #fff;
  5. overflow-y: scroll;
  6. }
  7. h1, h2, h3, h4, h5,
  8. .ui.header,
  9. .ui.menu,
  10. .ui.input input,
  11. .ui.button:not(.label) {
  12. font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
  13. }
  14. img {
  15. border-radius: 3px;
  16. }
  17. pre, code {
  18. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  19. &.raw {
  20. padding: 7px 12px;
  21. margin: 10px 0;
  22. background-color: #f8f8f8;
  23. border: 1px solid #ddd;
  24. border-radius: 3px;
  25. font-size: 13px;
  26. line-height: 1.5;
  27. overflow: auto;
  28. }
  29. &.wrap {
  30. white-space: pre-wrap; /* CSS 3 */
  31. // white-space: -moz-normal; /* Mozilla, since 1999 */
  32. // white-space: -normal; /* Opera 4-6 */
  33. // white-space: -o-normal; /* Opera 7 */
  34. word-break: break-word;
  35. }
  36. }
  37. .dont-break-out {
  38. /* These are technically the same, but use both */
  39. overflow-wrap: break-word;
  40. word-wrap: break-word;
  41. -ms-word-break: break-all;
  42. /* This is the dangerous one in WebKit, as it breaks things wherever */
  43. word-break: break-all;
  44. /* Instead use this non-standard one: */
  45. word-break: break-word;
  46. /* Adds a hyphen where the word breaks, if supported (No Blink) */
  47. -ms-hyphens: auto;
  48. -moz-hyphens: auto;
  49. -webkit-hyphens: auto;
  50. hyphens: auto;
  51. }
  52. .full.height {
  53. padding: 0;
  54. margin: 0 0 -@footer-margin*2 0;
  55. min-height: 100%;
  56. }
  57. .following.bar {
  58. z-index: 900;
  59. left: 0;
  60. width: 100%;
  61. &.light {
  62. background-color: white;
  63. border-bottom: 1px solid #DDDDDD;
  64. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  65. }
  66. .column .menu {
  67. margin-top: 0;
  68. }
  69. .top.menu a.item.brand {
  70. padding-left: 0;
  71. }
  72. .brand .ui.mini.image {
  73. width: 30px;
  74. }
  75. .top.menu a.item:hover,
  76. .top.menu .dropdown.item:hover,
  77. .top.menu .dropdown.item.active {
  78. background-color: transparent;
  79. }
  80. .top.menu a.item:hover {
  81. color: rgba(0,0,0,.45);
  82. }
  83. .top.menu .menu {
  84. z-index: 900;
  85. }
  86. .icon,
  87. .octicon {
  88. margin-right: 5px !important;
  89. }
  90. .head.link.item {
  91. padding-right: 0 !important;
  92. }
  93. .avatar > .ui.image {
  94. margin-right: 0;
  95. }
  96. .avatar .octicon-triangle-down {
  97. margin-top: 6.5px;
  98. }
  99. .searchbox {
  100. background-color: rgb(244, 244, 244) !important;
  101. &:focus {
  102. background-color: rgb(233, 233, 233) !important;
  103. }
  104. }
  105. .text .octicon {
  106. width: 16px;
  107. text-align: center;
  108. }
  109. .right.menu {
  110. .menu {
  111. left: auto;
  112. right: 0;
  113. }
  114. .dropdown .menu {
  115. margin-top: 0;
  116. }
  117. }
  118. }
  119. .ui {
  120. &.left {
  121. float: left;
  122. }
  123. &.right {
  124. float: right;
  125. }
  126. &.container {
  127. &.fluid {
  128. &.padded {
  129. padding: 0 10px 0 10px;
  130. }
  131. }
  132. }
  133. &.form {
  134. .ui.button {
  135. font-weight: normal;
  136. }
  137. }
  138. &.menu,
  139. &.vertical.menu,
  140. &.segment {
  141. box-shadow: none;
  142. }
  143. .text {
  144. &.red {
  145. color: #d95c5c !important;
  146. a {
  147. color: #d95c5c !important;
  148. &:hover {
  149. color: #E67777 !important;
  150. }
  151. }
  152. }
  153. &.blue {
  154. color: #428bca !important;
  155. a {
  156. color: #15c !important;
  157. &:hover {
  158. color: #428bca !important;
  159. }
  160. }
  161. }
  162. &.black {
  163. color: #444;
  164. &:hover {
  165. color: #000;
  166. }
  167. }
  168. &.grey {
  169. color: #767676 !important;
  170. a {
  171. color: #444 !important;
  172. &:hover {
  173. color: #000 !important;
  174. }
  175. }
  176. }
  177. &.light.grey {
  178. color: #888 !important;
  179. }
  180. &.green {
  181. color: #6cc644 !important;
  182. }
  183. &.purple {
  184. color: #6e5494 !important;
  185. }
  186. &.yellow {
  187. color: #FBBD08 !important;
  188. }
  189. &.gold {
  190. color: #a1882b !important;
  191. }
  192. &.left {
  193. text-align: left !important;
  194. }
  195. &.right {
  196. text-align: right !important;
  197. }
  198. &.small {
  199. font-size: 0.75em;
  200. }
  201. &.normal {
  202. font-weight: normal;
  203. }
  204. &.bold {
  205. font-weight: bold;
  206. }
  207. &.italic {
  208. font-style: italic;
  209. }
  210. &.truncate {
  211. overflow: hidden;
  212. text-overflow: ellipsis;
  213. white-space: nowrap;
  214. display: inline-block;
  215. }
  216. &.thin {
  217. font-weight: normal;
  218. }
  219. &.middle {
  220. vertical-align: middle;
  221. }
  222. }
  223. .message {
  224. text-align: center;
  225. }
  226. .header > i + .content {
  227. padding-left: 0.75rem;
  228. vertical-align: middle;
  229. }
  230. .warning {
  231. &.header {
  232. background-color: #F9EDBE !important;
  233. border-color: #F0C36D;
  234. }
  235. &.segment {
  236. border-color: #F0C36D;
  237. }
  238. }
  239. .info {
  240. &.segment {
  241. border: 1px solid #c5d5dd;
  242. &.top {
  243. background-color: #e6f1f6 !important;
  244. h3, h4 {
  245. margin-top: 0;
  246. }
  247. h3:last-child {
  248. margin-top: 4px;
  249. }
  250. > :last-child {
  251. margin-bottom: 0;
  252. }
  253. }
  254. }
  255. }
  256. .normal.header {
  257. font-weight: normal;
  258. }
  259. .avatar.image {
  260. border-radius: 3px;
  261. }
  262. .form {
  263. .fake {
  264. display: none !important;
  265. }
  266. .sub.field {
  267. margin-left: 25px;
  268. }
  269. }
  270. .sha.label {
  271. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  272. font-size: 13px;
  273. padding: 6px 10px 4px 10px;
  274. font-weight: normal;
  275. margin: 0 6px;
  276. }
  277. &.status.buttons {
  278. .octicon {
  279. margin-right: 4px;
  280. }
  281. }
  282. &.inline.delete-button {
  283. padding: 8px 15px;
  284. font-weight: normal;
  285. }
  286. }
  287. .overflow.menu {
  288. .items {
  289. max-height: 300px;
  290. overflow-y: auto;
  291. .item {
  292. position: relative;
  293. cursor: pointer;
  294. display: block;
  295. border: none;
  296. height: auto;
  297. border-top: none;
  298. line-height: 1em;
  299. color: rgba(0,0,0,.8);
  300. padding: .71428571em 1.14285714em !important;
  301. font-size: 1rem;
  302. text-transform: none;
  303. font-weight: 400;
  304. box-shadow: none;
  305. -webkit-touch-callout: none;
  306. &.active {
  307. font-weight: 700;
  308. }
  309. &:hover {
  310. background: rgba(0,0,0,.05);
  311. color: rgba(0,0,0,.8);
  312. z-index: 13;
  313. }
  314. }
  315. }
  316. }
  317. .scrolling.menu {
  318. .item.selected {
  319. font-weight: 700 !important;
  320. }
  321. }
  322. footer {
  323. margin-top: @footer-margin+14px !important;
  324. height: @footer-margin;
  325. background-color: white;
  326. border-top: 1px solid #d6d6d6;
  327. clear: both;
  328. width: 100%;
  329. color: #888888;
  330. .container {
  331. padding-top: 10px;
  332. .fa {
  333. width: 16px;
  334. text-align: center;
  335. color: #428bca;
  336. }
  337. .links >* {
  338. border-left: 1px solid #d6d6d6;
  339. padding-left: 8px;
  340. margin-left: 5px;
  341. &:first-child {
  342. border-left: none;
  343. }
  344. }
  345. }
  346. .ui.language .menu {
  347. max-height: 500px;
  348. overflow-y: auto;
  349. margin-bottom: 7px;
  350. }
  351. }
  352. .hide {
  353. display: none;
  354. }
  355. .center {
  356. text-align: center;
  357. }
  358. .generate-img(16);
  359. .generate-img(@n, @i: 1) when (@i =< @n) {
  360. .img-@{i} {
  361. width: (2px * @i) !important;
  362. height: (2px * @i) !important;
  363. }
  364. .generate-img(@n, (@i + 1));
  365. }
  366. // Accessibility
  367. .sr-only {
  368. position: absolute;
  369. width: 1px;
  370. height: 1px;
  371. padding: 0;
  372. margin: -1px;
  373. overflow: hidden;
  374. clip: rect(0, 0, 0, 0);
  375. border: 0;
  376. }
  377. .sr-only-focusable:active,
  378. .sr-only-focusable:focus {
  379. position: static;
  380. width: auto;
  381. height: auto;
  382. margin: 0;
  383. overflow: visible;
  384. clip: auto;
  385. }
  386. @media only screen and (max-width: 991px) and (min-width: 768px) {
  387. .ui.container {
  388. width: 95%;
  389. }
  390. }
  391. /* Overrides some styles of the Highlight.js plugin */
  392. .hljs {
  393. background: inherit !important;
  394. padding: 0 !important;
  395. }