_base.less 6.6 KB

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