Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

_base.less 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  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. -webkit-font-smoothing: antialiased;
  7. }
  8. img {
  9. border-radius: 3px;
  10. }
  11. pre, code {
  12. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  13. &.raw {
  14. padding: 7px 12px;
  15. margin: 10px 0;
  16. background-color: #f8f8f8;
  17. border: 1px solid #ddd;
  18. border-radius: 3px;
  19. font-size: 13px;
  20. line-height: 1.5;
  21. overflow: auto;
  22. }
  23. &.wrap {
  24. white-space: pre-wrap; /* CSS 3 */
  25. // white-space: -moz-normal; /* Mozilla, since 1999 */
  26. // white-space: -normal; /* Opera 4-6 */
  27. // white-space: -o-normal; /* Opera 7 */
  28. -ms-word-break: break-all;
  29. word-break: break-all;
  30. /* These are technically the same, but use both */
  31. overflow-wrap: break-word;
  32. word-wrap: break-word;
  33. }
  34. }
  35. .dont-break-out {
  36. /* These are technically the same, but use both */
  37. overflow-wrap: break-word;
  38. word-wrap: break-word;
  39. -ms-word-break: break-all;
  40. word-break: break-all;
  41. /* Adds a hyphen where the word breaks, if supported (No Blink) */
  42. -ms-hyphens: auto;
  43. -moz-hyphens: auto;
  44. -webkit-hyphens: auto;
  45. hyphens: auto;
  46. }
  47. .full.height {
  48. padding: 0;
  49. margin: 0 0 -@footer-margin*2 0;
  50. min-height: 100%;
  51. }
  52. .following.bar {
  53. z-index: 900;
  54. left: 0;
  55. width: 100%;
  56. &.light {
  57. background-color: white;
  58. border-bottom: 1px solid #DDDDDD;
  59. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  60. }
  61. .column .menu {
  62. margin-top: 0;
  63. }
  64. .top.menu a.item.brand {
  65. padding-left: 0;
  66. }
  67. .brand .ui.mini.image {
  68. width: 30px;
  69. }
  70. .top.menu a.item:hover,
  71. .top.menu .dropdown.item:hover,
  72. .top.menu .dropdown.item.active {
  73. background-color: transparent;
  74. }
  75. .top.menu a.item:hover {
  76. color: rgba(0,0,0,.45);
  77. }
  78. .top.menu .menu {
  79. z-index: 900;
  80. }
  81. .icon,
  82. .octicon {
  83. margin-right: 5px !important;
  84. }
  85. .head.link.item {
  86. padding-right: 0 !important;
  87. }
  88. .avatar > .ui.image {
  89. margin-right: 0;
  90. }
  91. .avatar .octicon-triangle-down {
  92. margin-top: 6.5px;
  93. }
  94. .searchbox {
  95. background-color: rgb(244, 244, 244) !important;
  96. &:focus {
  97. background-color: rgb(233, 233, 233) !important;
  98. }
  99. }
  100. .text .octicon {
  101. width: 16px;
  102. text-align: center;
  103. }
  104. .right.menu {
  105. .menu {
  106. left: auto;
  107. right: 0;
  108. }
  109. .dropdown .menu {
  110. margin-top: 0;
  111. }
  112. }
  113. }
  114. .ui {
  115. &.left {
  116. float: left;
  117. }
  118. &.right {
  119. float: right;
  120. }
  121. &.button, &.menu .item {
  122. -moz-user-select: auto;
  123. -ms-user-select: auto;
  124. -webkit-user-select: auto;
  125. user-select: auto;
  126. }
  127. &.container {
  128. &.fluid {
  129. &.padded {
  130. padding: 0 10px 0 10px;
  131. }
  132. }
  133. }
  134. &.form {
  135. .ui.button {
  136. font-weight: normal;
  137. }
  138. }
  139. &.menu,
  140. &.vertical.menu,
  141. &.segment {
  142. box-shadow: none;
  143. }
  144. /* overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
  145. .menu:not(.vertical) .item .button {
  146. padding-bottom: .78571429em;
  147. padding-top: .78571429em;
  148. font-size: 1em;
  149. }
  150. .text {
  151. &.red {
  152. color: #d95c5c !important;
  153. a {
  154. color: #d95c5c !important;
  155. &:hover {
  156. color: #E67777 !important;
  157. }
  158. }
  159. }
  160. &.blue {
  161. color: #428bca !important;
  162. a {
  163. color: #15c !important;
  164. &:hover {
  165. color: #428bca !important;
  166. }
  167. }
  168. }
  169. &.black {
  170. color: #444;
  171. &:hover {
  172. color: #000;
  173. }
  174. }
  175. &.grey {
  176. color: #767676 !important;
  177. a {
  178. color: #444 !important;
  179. &:hover {
  180. color: #000 !important;
  181. }
  182. }
  183. }
  184. &.light.grey {
  185. color: #888 !important;
  186. }
  187. &.green {
  188. color: #6cc644 !important;
  189. }
  190. &.purple {
  191. color: #6e5494 !important;
  192. }
  193. &.yellow {
  194. color: #FBBD08 !important;
  195. }
  196. &.gold {
  197. color: #a1882b !important;
  198. }
  199. &.left {
  200. text-align: left !important;
  201. }
  202. &.right {
  203. text-align: right !important;
  204. }
  205. &.small {
  206. font-size: 0.75em;
  207. }
  208. &.normal {
  209. font-weight: normal;
  210. }
  211. &.bold {
  212. font-weight: bold;
  213. }
  214. &.italic {
  215. font-style: italic;
  216. }
  217. &.truncate {
  218. overflow: hidden;
  219. text-overflow: ellipsis;
  220. white-space: nowrap;
  221. display: inline-block;
  222. }
  223. &.thin {
  224. font-weight: normal;
  225. }
  226. &.middle {
  227. vertical-align: middle;
  228. }
  229. }
  230. .message {
  231. text-align: center;
  232. }
  233. .header > i + .content {
  234. padding-left: 0.75rem;
  235. vertical-align: middle;
  236. }
  237. .warning {
  238. &.header {
  239. background-color: #F9EDBE !important;
  240. border-color: #F0C36D;
  241. }
  242. &.segment {
  243. border-color: #F0C36D;
  244. }
  245. }
  246. .info {
  247. &.segment {
  248. border: 1px solid #c5d5dd;
  249. &.top {
  250. background-color: #e6f1f6 !important;
  251. h3, h4 {
  252. margin-top: 0;
  253. }
  254. h3:last-child {
  255. margin-top: 4px;
  256. }
  257. > :last-child {
  258. margin-bottom: 0;
  259. }
  260. }
  261. }
  262. }
  263. .normal.header {
  264. font-weight: normal;
  265. }
  266. .avatar.image {
  267. border-radius: 3px;
  268. }
  269. .form {
  270. .fake {
  271. display: none !important;
  272. }
  273. .sub.field {
  274. margin-left: 25px;
  275. }
  276. }
  277. .sha.label {
  278. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  279. font-size: 13px;
  280. padding: 6px 10px 4px 10px;
  281. font-weight: normal;
  282. margin: 0 6px;
  283. }
  284. &.status.buttons {
  285. .octicon {
  286. margin-right: 4px;
  287. }
  288. }
  289. &.inline.delete-button {
  290. padding: 8px 15px;
  291. font-weight: normal;
  292. }
  293. .background {
  294. &.red {
  295. background-color: #d95c5c !important;
  296. }
  297. &.blue {
  298. background-color: #428bca !important;
  299. }
  300. &.black {
  301. background-color: #444;
  302. }
  303. &.grey {
  304. background-color: #767676 !important;
  305. }
  306. &.light.grey {
  307. background-color: #888 !important;
  308. }
  309. &.green {
  310. background-color: #6cc644 !important;
  311. }
  312. &.purple {
  313. background-color: #6e5494 !important;
  314. }
  315. &.yellow {
  316. background-color: #FBBD08 !important;
  317. }
  318. &.gold {
  319. background-color: #a1882b !important;
  320. }
  321. }
  322. .branch-tag-choice {
  323. line-height: 20px;
  324. }
  325. }
  326. .overflow.menu {
  327. .items {
  328. max-height: 300px;
  329. overflow-y: auto;
  330. .item {
  331. position: relative;
  332. cursor: pointer;
  333. display: block;
  334. border: none;
  335. height: auto;
  336. border-top: none;
  337. line-height: 1em;
  338. color: rgba(0,0,0,.8);
  339. padding: .71428571em 1.14285714em !important;
  340. font-size: 1rem;
  341. text-transform: none;
  342. font-weight: 400;
  343. box-shadow: none;
  344. -webkit-touch-callout: none;
  345. &.active {
  346. font-weight: 700;
  347. }
  348. &:hover {
  349. background: rgba(0,0,0,.05);
  350. color: rgba(0,0,0,.8);
  351. z-index: 13;
  352. }
  353. }
  354. }
  355. }
  356. .scrolling.menu {
  357. .item.selected {
  358. font-weight: 700 !important;
  359. }
  360. }
  361. footer {
  362. margin-top: @footer-margin+14px !important;
  363. height: @footer-margin;
  364. background-color: white;
  365. border-top: 1px solid #d6d6d6;
  366. clear: both;
  367. width: 100%;
  368. color: #888888;
  369. .container {
  370. padding-top: 10px;
  371. .fa {
  372. width: 16px;
  373. text-align: center;
  374. color: #428bca;
  375. }
  376. .links >* {
  377. border-left: 1px solid #d6d6d6;
  378. padding-left: 8px;
  379. margin-left: 5px;
  380. &:first-child {
  381. border-left: none;
  382. }
  383. }
  384. }
  385. .ui.language .menu {
  386. max-height: 500px;
  387. overflow-y: auto;
  388. margin-bottom: 7px;
  389. }
  390. }
  391. .hide {
  392. display: none;
  393. }
  394. .center {
  395. text-align: center;
  396. }
  397. .generate-img(16);
  398. .generate-img(@n, @i: 1) when (@i =< @n) {
  399. .img-@{i} {
  400. width: (2px * @i) !important;
  401. height: (2px * @i) !important;
  402. }
  403. .generate-img(@n, (@i + 1));
  404. }
  405. // Accessibility
  406. .sr-only {
  407. position: absolute;
  408. width: 1px;
  409. height: 1px;
  410. padding: 0;
  411. margin: -1px;
  412. overflow: hidden;
  413. clip: rect(0, 0, 0, 0);
  414. border: 0;
  415. }
  416. .sr-only-focusable:active,
  417. .sr-only-focusable:focus {
  418. position: static;
  419. width: auto;
  420. height: auto;
  421. margin: 0;
  422. overflow: visible;
  423. clip: auto;
  424. }
  425. @media only screen and (max-width: 991px) and (min-width: 768px) {
  426. .ui.container {
  427. width: 95%;
  428. }
  429. }
  430. /* Overrides some styles of the Highlight.js plugin */
  431. .hljs {
  432. background: inherit !important;
  433. padding: 0 !important;
  434. }
  435. .ui.menu.new-menu {
  436. justify-content: center !important;
  437. padding-top: 15px !important;
  438. margin-top: -15px !important;
  439. margin-bottom: 15px !important;
  440. background-color: #FAFAFA !important;
  441. border-width: 1px !important;
  442. }
  443. @media only screen and (max-width: 1200px) {
  444. .ui.menu.new-menu {
  445. overflow-x: auto !important;
  446. justify-content: left !important;
  447. padding-bottom: 5px;
  448. }
  449. .ui.menu.new-menu::-webkit-scrollbar {
  450. height: 8px;
  451. display: none;
  452. }
  453. .ui.menu.new-menu:hover::-webkit-scrollbar {
  454. display: block;
  455. }
  456. .ui.menu.new-menu::-webkit-scrollbar-track {
  457. background: rgba(0,0,0,0.01);
  458. }
  459. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  460. background:rgba(0,0,0,0.2);
  461. }
  462. .ui.menu.new-menu:after {
  463. position: absolute;
  464. margin-top: -15px;
  465. display: block;
  466. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  467. content: ' ';
  468. right: 0;
  469. height: 53px;
  470. z-index: 1000;
  471. width: 60px;
  472. clear: none;
  473. visibility: visible;
  474. }
  475. .ui.menu.new-menu a.item:last-child {
  476. padding-right: 30px !important;
  477. }
  478. }
  479. [v-cloak] {
  480. display: none !important;
  481. }
  482. .repos-search {
  483. padding-bottom: 0 !important;
  484. }
  485. .repos-filter {
  486. margin-top: 0 !important;
  487. border-bottom-width: 0 !important;
  488. margin-bottom: 2px !important;
  489. }