_base.less 6.1 KB

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