_base.less 6.5 KB

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