_base.less 6.6 KB

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