_base.less 6.8 KB

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