PageRenderTime 53ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/app/assets/stylesheets/pages/projects.scss

https://gitlab.com/viktor-meszaros2/gitlab-ce
Sass | 844 lines | 680 code | 161 blank | 3 comment | 0 complexity | 9672ef434d5beef0ed0e70a91ba8d7a0 MD5 | raw file
  1. .alert_holder {
  2. margin: -16px;
  3. .alert-link {
  4. font-weight: normal;
  5. }
  6. }
  7. .no-ssh-key-message,
  8. .project-limit-message {
  9. background-color: #f28d35;
  10. margin-bottom: 0;
  11. }
  12. .new_project,
  13. .edit-project {
  14. fieldset {
  15. &.features {
  16. .label-light {
  17. margin-bottom: 0;
  18. }
  19. .help-block {
  20. margin-top: 0;
  21. }
  22. }
  23. .form-group {
  24. margin-bottom: 5px;
  25. }
  26. &> .form-group {
  27. padding-left: 0;
  28. }
  29. }
  30. .help-block {
  31. margin-bottom: 10px;
  32. }
  33. .project-path {
  34. padding-right: 0;
  35. .form-control {
  36. border-radius: $border-radius-base;
  37. }
  38. }
  39. .input-group > div {
  40. &:last-child {
  41. padding-right: 0;
  42. }
  43. }
  44. @media (max-width: $screen-xs-max) {
  45. .input-group > div {
  46. margin-bottom: 14px;
  47. &:last-child {
  48. margin-bottom: 0;
  49. }
  50. }
  51. fieldset > .form-group:first-child {
  52. padding-right: 0;
  53. }
  54. }
  55. .input-group-addon {
  56. &.static-namespace {
  57. height: 35px;
  58. border-radius: 3px;
  59. border: 1px solid #e5e5e5;
  60. }
  61. &+ .select2 a {
  62. border-top-left-radius: 0;
  63. border-bottom-left-radius: 0;
  64. }
  65. }
  66. }
  67. .project-home-panel {
  68. padding-top: 24px;
  69. padding-bottom: 24px;
  70. @media (min-width: $screen-sm-min) {
  71. border-bottom: 1px solid $border-color;
  72. }
  73. .project-avatar {
  74. float: none;
  75. margin: 0 auto;
  76. border: none;
  77. &.identicon {
  78. border-radius: 50%;
  79. }
  80. }
  81. .project-title {
  82. margin-top: 10px;
  83. margin-bottom: 10px;
  84. font-size: 24px;
  85. font-weight: 400;
  86. line-height: 1;
  87. .fa {
  88. margin-left: 2px;
  89. font-size: 12px;
  90. vertical-align: middle;
  91. }
  92. }
  93. .project-home-desc {
  94. margin-left: auto;
  95. margin-right: auto;
  96. margin-bottom: 15px;
  97. max-width: 700px;
  98. > p {
  99. margin-bottom: 0;
  100. }
  101. }
  102. .notifications-btn {
  103. .fa-bell,
  104. .fa-spinner {
  105. margin-right: 6px;
  106. }
  107. .fa-angle-down {
  108. margin-left: 6px;
  109. }
  110. }
  111. }
  112. .project-repo-buttons {
  113. font-size: 0;
  114. .btn {
  115. @include btn-gray;
  116. padding: 3px 10px;
  117. .fa {
  118. color: $layout-link-gray;
  119. }
  120. svg {
  121. path {
  122. fill: $layout-link-gray;
  123. }
  124. use {
  125. stroke: $layout-link-gray;
  126. }
  127. }
  128. .fa-caret-down {
  129. margin-left: 3px;
  130. }
  131. }
  132. .project-repo-btn-group,
  133. .notification-dropdown,
  134. .project-dropdown {
  135. margin-left: 10px;
  136. }
  137. .count-buttons {
  138. display: inline-block;
  139. vertical-align: top;
  140. }
  141. .project-clone-holder {
  142. display: inline-block;
  143. input {
  144. height: 29px;
  145. }
  146. }
  147. .count-with-arrow {
  148. display: inline-block;
  149. position: relative;
  150. margin-left: 4px;
  151. .arrow {
  152. &::before {
  153. content: '';
  154. display: inline-block;
  155. position: absolute;
  156. width: 0;
  157. height: 0;
  158. border-color: transparent;
  159. border-style: solid;
  160. top: 50%;
  161. left: 0;
  162. margin-top: -6px;
  163. border-width: 7px 5px 7px 0;
  164. border-right-color: #dce0e5;
  165. pointer-events: none;
  166. }
  167. &::after {
  168. content: '';
  169. position: absolute;
  170. width: 0;
  171. height: 0;
  172. border-color: transparent;
  173. border-style: solid;
  174. top: 50%;
  175. left: 1px;
  176. margin-top: -9px;
  177. border-width: 10px 7px 10px 0;
  178. border-right-color: #fff;
  179. pointer-events: none;
  180. }
  181. }
  182. .count {
  183. @include btn-gray;
  184. display: inline-block;
  185. background: white;
  186. border-radius: 2px;
  187. border-width: 1px;
  188. border-style: solid;
  189. font-size: 13px;
  190. font-weight: 600;
  191. line-height: 13px;
  192. padding: $gl-vert-padding $gl-padding;
  193. letter-spacing: .4px;
  194. padding: 7px 14px;
  195. text-align: center;
  196. vertical-align: middle;
  197. touch-action: manipulation;
  198. background-image: none;
  199. white-space: nowrap;
  200. margin: 0 10px 0 4px;
  201. a {
  202. color: inherit;
  203. }
  204. &:hover {
  205. background: #fff;
  206. }
  207. }
  208. }
  209. }
  210. .split-one {
  211. display: inline-table;
  212. margin-right: 12px;
  213. > a {
  214. margin: -1px;
  215. }
  216. }
  217. .project-visibility-level-holder {
  218. .radio {
  219. margin-bottom: 10px;
  220. i {
  221. margin: 2px 0;
  222. font-size: 20px;
  223. }
  224. .option-title {
  225. font-weight: normal;
  226. display: inline-block;
  227. color: $gl-gray-dark;
  228. }
  229. .option-descr {
  230. margin-left: 29px;
  231. color: #54565b;
  232. }
  233. }
  234. }
  235. .save-project-loader {
  236. margin-top: 50px;
  237. margin-bottom: 50px;
  238. color: #555;
  239. }
  240. .transfer-project .select2-container {
  241. min-width: 200px;
  242. }
  243. .deploy-key-content {
  244. @media (min-width: $screen-sm-min) {
  245. float: left;
  246. &:last-child {
  247. float: right;
  248. }
  249. }
  250. }
  251. .deploy-key-projects {
  252. @media (min-width: $screen-sm-min) {
  253. line-height: 42px;
  254. }
  255. }
  256. a.deploy-project-label {
  257. padding: 5px;
  258. margin-right: 5px;
  259. color: $gl-gray;
  260. background-color: $row-hover;
  261. &:hover {
  262. color: $gl-link-color;
  263. }
  264. }
  265. .vs-public {
  266. color: $gl-primary;
  267. }
  268. .vs-internal {
  269. color: $gl-warning;
  270. }
  271. .vs-private {
  272. color: $gl-success;
  273. }
  274. .lfs-enabled {
  275. color: $gl-success;
  276. }
  277. .lfs-disabled {
  278. color: $gl-warning;
  279. }
  280. .breadcrumb.repo-breadcrumb {
  281. padding: 0;
  282. background: transparent;
  283. border: none;
  284. line-height: 36px;
  285. margin: 0;
  286. > li + li::before {
  287. padding: 0 3px;
  288. color: #999;
  289. }
  290. a {
  291. color: $gl-dark-link-color;
  292. }
  293. .dropdown-menu {
  294. width: 240px;
  295. }
  296. }
  297. .last-push-widget {
  298. margin-top: -1px;
  299. }
  300. .fork-namespaces {
  301. .row {
  302. -webkit-flex-wrap: wrap;
  303. display: -webkit-flex;
  304. display: flex;
  305. flex-wrap: wrap;
  306. justify-content: flex-start;
  307. .fork-thumbnail {
  308. border-radius: $border-radius-base;
  309. background-color: $white-light;
  310. border: 1px solid $border-white-light;
  311. height: 202px;
  312. margin: $gl-padding;
  313. text-align: center;
  314. width: 169px;
  315. &:hover,
  316. &.forked {
  317. background-color: $row-hover;
  318. border-color: $row-hover-border;
  319. }
  320. .no-avatar {
  321. width: 100px;
  322. height: 100px;
  323. background-color: $gray-light;
  324. border: 1px solid $gray-dark;
  325. margin: 0 auto;
  326. border-radius: 50%;
  327. i {
  328. font-size: 100px;
  329. color: $gray-dark;
  330. }
  331. }
  332. a {
  333. display: block;
  334. width: 100%;
  335. height: 100%;
  336. padding-top: $gl-padding;
  337. color: $gl-gray;
  338. .caption {
  339. min-height: 30px;
  340. padding: $gl-padding 0;
  341. }
  342. }
  343. img {
  344. border-radius: 50%;
  345. max-width: 100px;
  346. }
  347. }
  348. }
  349. }
  350. .project-import {
  351. .form-group {
  352. margin-bottom: 5px;
  353. }
  354. .import-buttons {
  355. padding-left: 0;
  356. display: -webkit-flex;
  357. display: flex;
  358. -webkit-flex-wrap: wrap;
  359. flex-wrap: wrap;
  360. .btn {
  361. margin: 0 10px 10px 0;
  362. padding: 8px;
  363. }
  364. > div {
  365. padding-left: 0;
  366. &:last-child {
  367. margin-bottom: 0;
  368. .btn {
  369. margin-right: 0;
  370. }
  371. }
  372. }
  373. }
  374. }
  375. .project-stats {
  376. font-size: 0;
  377. border-bottom: 1px solid $border-color;
  378. .nav {
  379. padding-top: 12px;
  380. padding-bottom: 12px;
  381. }
  382. .nav > li {
  383. display: inline-block;
  384. &:not(:last-child) {
  385. margin-right: $gl-padding;
  386. }
  387. &.project-repo-buttons-right {
  388. margin-top: 10px;
  389. @media (min-width: $screen-md-min) {
  390. float: right;
  391. margin-top: 0;
  392. }
  393. }
  394. }
  395. .nav > li > a {
  396. padding: 0;
  397. background-color: transparent;
  398. font-size: 15px;
  399. line-height: 29px;
  400. color: $notes-light-color;
  401. &:hover,
  402. &:focus {
  403. color: darken($notes-light-color, 15%);
  404. }
  405. }
  406. li.missing {
  407. border: 1px dashed $border-gray-light;
  408. border-radius: $border-radius-default;
  409. a {
  410. padding-left: 10px;
  411. padding-right: 10px;
  412. color: $notes-light-color;
  413. display: block;
  414. }
  415. &:hover {
  416. background-color: $gray-normal;
  417. }
  418. }
  419. }
  420. pre.light-well {
  421. border-color: #f1f1f1;
  422. }
  423. .git-empty {
  424. margin: 0 7px 7px;
  425. h5 {
  426. color: #5c5d5e;
  427. }
  428. .light-well {
  429. border-radius: 2px;
  430. color: #5b6169;
  431. font-size: 13px;
  432. line-height: 1.6em;
  433. }
  434. }
  435. .project-footer {
  436. margin-top: 20px;
  437. .btn-remove {
  438. @include btn-middle;
  439. @include btn-red;
  440. float: left !important;
  441. }
  442. }
  443. /*
  444. * Projects list rendered on dashboard and user page
  445. */
  446. .projects-list {
  447. @include basic-list;
  448. .project-row {
  449. border-color: $table-border-color;
  450. .project-full-name {
  451. @include str-truncated;
  452. }
  453. .controls {
  454. line-height: $list-text-height;
  455. a:hover {
  456. text-decoration: none;
  457. }
  458. > span {
  459. margin-left: 10px;
  460. }
  461. svg {
  462. position: relative;
  463. top: 2px;
  464. }
  465. }
  466. }
  467. .bottom {
  468. padding-top: $gl-padding;
  469. padding-bottom: 0;
  470. }
  471. }
  472. .panel .projects-list li {
  473. padding: 10px 15px;
  474. margin: 0;
  475. }
  476. .activity-filter-block {
  477. .controls {
  478. padding-bottom: 7px;
  479. margin-top: 8px;
  480. border-bottom: 1px solid $border-color;
  481. }
  482. }
  483. .project-last-commit {
  484. @media (min-width: $screen-sm-min) {
  485. margin-top: $gl-padding;
  486. }
  487. &.container-fluid {
  488. padding-top: 12px;
  489. padding-bottom: 12px;
  490. background-color: $background-color;
  491. border: 1px solid $border-color;
  492. border-right-width: 0;
  493. border-left-width: 0;
  494. @media (min-width: $screen-sm-min) {
  495. border-right-width: 1px;
  496. border-left-width: 1px;
  497. }
  498. }
  499. &.container-limited {
  500. @media (min-width: 1281px) {
  501. border-radius: $border-radius-base;
  502. }
  503. }
  504. .ci-status {
  505. margin-right: $gl-padding;
  506. }
  507. .commit-row-message {
  508. color: $gl-gray;
  509. }
  510. .commit_short_id {
  511. margin-right: 5px;
  512. color: $gl-link-color;
  513. font-weight: 600;
  514. }
  515. .commit-author-link {
  516. .commit-author-name {
  517. font-weight: 600;
  518. }
  519. }
  520. }
  521. .project-show-readme {
  522. .row-content-block {
  523. background-color: inherit;
  524. border: none;
  525. }
  526. .readme-holder {
  527. padding: $gl-padding 0;
  528. border-top: 0;
  529. .edit-project-readme {
  530. z-index: 2;
  531. position: relative;
  532. }
  533. .wiki h1 {
  534. border-bottom: none;
  535. padding: 0;
  536. }
  537. }
  538. }
  539. .git-clone-holder {
  540. width: 380px;
  541. .btn-clipboard {
  542. border: 1px solid $border-color;
  543. }
  544. .clone-options {
  545. display: table-cell;
  546. a.btn {
  547. width: 100%;
  548. }
  549. }
  550. .form-control {
  551. @extend .monospace;
  552. background: #fff;
  553. font-size: 14px;
  554. margin-left: -1px;
  555. cursor: auto;
  556. width: 101%;
  557. }
  558. }
  559. .cannot-be-merged,
  560. .cannot-be-merged:hover {
  561. color: #e62958;
  562. margin-top: 2px;
  563. }
  564. .private-forks-notice .private-fork-icon {
  565. i:nth-child(1) {
  566. color: #2aa056;
  567. }
  568. i:nth-child(2) {
  569. color: #fff;
  570. }
  571. }
  572. .new_protected_branch {
  573. label {
  574. margin-top: 6px;
  575. font-weight: normal;
  576. }
  577. }
  578. .protected-branches-list {
  579. a {
  580. color: $gl-gray;
  581. &:hover {
  582. color: $gl-link-color;
  583. }
  584. &.is-active {
  585. font-weight: 600;
  586. }
  587. }
  588. .settings-message {
  589. margin: 0;
  590. border-radius: 0 0 1px 1px;
  591. padding: 20px 0;
  592. border: none;
  593. }
  594. .table-bordered {
  595. border-radius: 1px;
  596. th:not(:last-child),
  597. td:not(:last-child) {
  598. border-right: solid 1px transparent;
  599. }
  600. }
  601. }
  602. .custom-notifications-form {
  603. .is-loading {
  604. .custom-notification-event-loading {
  605. display: inline-block;
  606. }
  607. }
  608. }
  609. .custom-notification-event-loading {
  610. display: none;
  611. margin-left: 5px;
  612. &.is-done {
  613. color: $gl-text-green;
  614. }
  615. }
  616. .project-refs-form .dropdown-menu,
  617. .dropdown-menu-projects {
  618. width: 300px;
  619. @media (min-width: $screen-sm-min) {
  620. width: 500px;
  621. }
  622. a {
  623. white-space: normal;
  624. }
  625. }
  626. .compare-form-group {
  627. .dropdown-menu {
  628. width: 300px;
  629. }
  630. }
  631. .clearable-input {
  632. position: relative;
  633. .clear-icon {
  634. @extend .fa-times;
  635. display: none;
  636. position: absolute;
  637. right: 7px;
  638. top: 7px;
  639. color: $location-icon-color;
  640. &::before {
  641. font-family: FontAwesome;
  642. font-weight: normal;
  643. font-style: normal;
  644. }
  645. }
  646. &.has-value {
  647. .clear-icon {
  648. cursor: pointer;
  649. display: block;
  650. }
  651. }
  652. }
  653. .project-path {
  654. .form-control {
  655. min-width: 100px;
  656. }
  657. .select2-choice {
  658. border-top-right-radius: 0;
  659. border-bottom-right-radius: 0;
  660. }
  661. }
  662. .project-home-empty {
  663. border-top: 0;
  664. .container-fluid {
  665. background: none;
  666. }
  667. p {
  668. margin-left: auto;
  669. margin-right: auto;
  670. max-width: 650px;
  671. }
  672. }
  673. .project-feature-nested {
  674. @media (min-width: $screen-sm-min) {
  675. padding-left: 45px;
  676. }
  677. }
  678. .project-repo-select {
  679. &.disabled {
  680. opacity: 0.5;
  681. pointer-events: none;
  682. }
  683. }