_base.less 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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. .text {
  132. &.red {
  133. color: #d95c5c !important;
  134. a {
  135. color: #d95c5c !important;
  136. &:hover {
  137. color: #E67777 !important;
  138. }
  139. }
  140. }
  141. &.blue {
  142. color: #428bca !important;
  143. a {
  144. color: #15c !important;
  145. &:hover {
  146. color: #428bca !important;
  147. }
  148. }
  149. }
  150. &.black {
  151. color: #444;
  152. &:hover {
  153. color: #000;
  154. }
  155. }
  156. &.grey {
  157. color: #767676 !important;
  158. a {
  159. color: #444 !important;
  160. &:hover {
  161. color: #000 !important;
  162. }
  163. }
  164. }
  165. &.light.grey {
  166. color: #888 !important;
  167. }
  168. &.green {
  169. color: #6cc644 !important;
  170. }
  171. &.purple {
  172. color: #6e5494 !important;
  173. }
  174. &.yellow {
  175. color: #FBBD08 !important;
  176. }
  177. &.gold {
  178. color: #a1882b !important;
  179. }
  180. &.left {
  181. text-align: left !important;
  182. }
  183. &.right {
  184. text-align: right !important;
  185. }
  186. &.small {
  187. font-size: 0.75em;
  188. }
  189. &.normal {
  190. font-weight: normal;
  191. }
  192. &.bold {
  193. font-weight: bold;
  194. }
  195. &.italic {
  196. font-style: italic;
  197. }
  198. &.truncate {
  199. overflow: hidden;
  200. text-overflow: ellipsis;
  201. white-space: nowrap;
  202. display: inline-block;
  203. }
  204. &.thin {
  205. font-weight: normal;
  206. }
  207. &.middle {
  208. vertical-align: middle;
  209. }
  210. }
  211. .message {
  212. text-align: center;
  213. }
  214. .header > i + .content {
  215. padding-left: 0.75rem;
  216. vertical-align: middle;
  217. }
  218. .warning {
  219. &.header {
  220. background-color: #F9EDBE !important;
  221. border-color: #F0C36D;
  222. }
  223. &.segment {
  224. border-color: #F0C36D;
  225. }
  226. }
  227. .info {
  228. &.segment {
  229. border: 1px solid #c5d5dd;
  230. &.top {
  231. background-color: #e6f1f6 !important;
  232. h3, h4 {
  233. margin-top: 0;
  234. }
  235. h3:last-child {
  236. margin-top: 4px;
  237. }
  238. > :last-child {
  239. margin-bottom: 0;
  240. }
  241. }
  242. }
  243. }
  244. .normal.header {
  245. font-weight: normal;
  246. }
  247. .avatar.image {
  248. border-radius: 3px;
  249. }
  250. .form {
  251. .fake {
  252. display: none !important;
  253. }
  254. .sub.field {
  255. margin-left: 25px;
  256. }
  257. }
  258. .sha.label {
  259. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  260. font-size: 13px;
  261. padding: 6px 10px 4px 10px;
  262. font-weight: normal;
  263. margin: 0 6px;
  264. }
  265. &.status.buttons {
  266. .octicon {
  267. margin-right: 4px;
  268. }
  269. }
  270. &.inline.delete-button {
  271. padding: 8px 15px;
  272. font-weight: normal;
  273. }
  274. }
  275. .overflow.menu {
  276. .items {
  277. max-height: 300px;
  278. overflow-y: auto;
  279. .item {
  280. position: relative;
  281. cursor: pointer;
  282. display: block;
  283. border: none;
  284. height: auto;
  285. border-top: none;
  286. line-height: 1em;
  287. color: rgba(0,0,0,.8);
  288. padding: .71428571em 1.14285714em !important;
  289. font-size: 1rem;
  290. text-transform: none;
  291. font-weight: 400;
  292. box-shadow: none;
  293. -webkit-touch-callout: none;
  294. &.active {
  295. font-weight: 700;
  296. }
  297. &:hover {
  298. background: rgba(0,0,0,.05);
  299. color: rgba(0,0,0,.8);
  300. z-index: 13;
  301. }
  302. }
  303. }
  304. }
  305. .scrolling.menu {
  306. .item.selected {
  307. font-weight: 700 !important;
  308. }
  309. }
  310. footer {
  311. margin-top: @footer-margin+14px !important;
  312. height: @footer-margin;
  313. background-color: white;
  314. border-top: 1px solid #d6d6d6;
  315. clear: both;
  316. width: 100%;
  317. color: #888888;
  318. .container {
  319. padding-top: 10px;
  320. .fa {
  321. width: 16px;
  322. text-align: center;
  323. color: #428bca;
  324. }
  325. .links >* {
  326. border-left: 1px solid #d6d6d6;
  327. padding-left: 8px;
  328. margin-left: 5px;
  329. &:first-child {
  330. border-left: none;
  331. }
  332. }
  333. }
  334. .ui.language .menu {
  335. max-height: 500px;
  336. overflow-y: auto;
  337. margin-bottom: 7px;
  338. }
  339. }
  340. .hide {
  341. display: none;
  342. }
  343. .center {
  344. text-align: center;
  345. }
  346. .generate-img(16);
  347. .generate-img(@n, @i: 1) when (@i =< @n) {
  348. .img-@{i} {
  349. width: (2px * @i) !important;
  350. height: (2px * @i) !important;
  351. }
  352. .generate-img(@n, (@i + 1));
  353. }
  354. // Accessibility
  355. .sr-only {
  356. position: absolute;
  357. width: 1px;
  358. height: 1px;
  359. padding: 0;
  360. margin: -1px;
  361. overflow: hidden;
  362. clip: rect(0, 0, 0, 0);
  363. border: 0;
  364. }
  365. .sr-only-focusable:active,
  366. .sr-only-focusable:focus {
  367. position: static;
  368. width: auto;
  369. height: auto;
  370. margin: 0;
  371. overflow: visible;
  372. clip: auto;
  373. }
  374. @media only screen and (max-width: 991px) and (min-width: 768px) {
  375. .ui.container {
  376. width: 95%;
  377. }
  378. }
  379. /* Overrides some styles of the Highlight.js plugin */
  380. .hljs {
  381. background: inherit !important;
  382. padding: 0 !important;
  383. }