_base.less 6.7 KB

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