style.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. @import "bootstrap3/less/bootstrap.less";
  2. @import "bootstrap3/less/variables.less";
  3. @violet: #6f5499;
  4. @brand-primary: lighten(@violet,5%);
  5. body {
  6. padding: 1em;
  7. }
  8. .statut {
  9. margin-left: -16px;
  10. height: 40px;
  11. line-height: 40px;
  12. padding-left: 32px;
  13. &.clos {.bg-warning;}
  14. }
  15. nav.projets.sidebar {
  16. background: @violet;
  17. padding: 2em 0 0 0;
  18. margin-top: 2em;
  19. margin-left: -1em;
  20. margin-right: -1em;
  21. width: auto;
  22. overflow-y: auto;
  23. .heading, a {
  24. display: block;
  25. width: 100%;
  26. min-height: 2em;
  27. line-height: 2em;
  28. padding-left: 2em;
  29. paddin-right: 0.5em;
  30. color: #fff;
  31. &.selectionné, &.selected {
  32. background: @violet + #111;
  33. }
  34. }
  35. a.projet {
  36. display: none;
  37. }
  38. a.projet:nth-last-child(1), a.projet:nth-last-child(2), a.projet:nth-last-child(3), a.projet:nth-last-child(4), a.projet:nth-last-child(5), a.projet:nth-last-child(6), a.projet:nth-last-child(7), a.projet:nth-last-child(8), a.projet:nth-last-child(9), a.projet:nth-last-child(10), a.projet:nth-last-child(11), {
  39. display: block;
  40. }
  41. .heading {
  42. color: #ccc;
  43. }
  44. .vers-index {
  45. &:before {
  46. content: "◂ ";
  47. margin-left: -0.8em;
  48. }
  49. }
  50. }
  51. nav.dossiers.sidebar {
  52. a {
  53. display: block;
  54. width: 100%;
  55. min-height: 2em;
  56. line-height: 2em;
  57. padding-left: 2em;
  58. }
  59. }
  60. .bouton {
  61. .btn-primary;
  62. .btn-lg;
  63. }
  64. .bouton.presse {
  65. margin: 0.5em auto;
  66. }
  67. .app.titre {
  68. padding: 1em 20px;
  69. }
  70. .métadonnées, .éditer, .voir, .ressources, .actions {
  71. padding: 1em 20px;
  72. }
  73. .ressources {
  74. a {
  75. &.pad, &.pdf, &.docx, &.html5, &.txt {
  76. display: inline-block;
  77. padding: 0.3em;
  78. background: lighten(@violet,20%);
  79. border-radius: 4px;
  80. margin: 0 0 0.3em 0.5em;
  81. color: #fff;
  82. font-weight: 600;
  83. }
  84. }
  85. }
  86. .page-view-project, .page-view-dossier {
  87. .métadonnées {
  88. position: absolute;
  89. right: 1em;
  90. top: 1em;
  91. text-align: right;
  92. .bouton {
  93. font-size: 80%;
  94. background-color: lighten(@violet,20%);
  95. }
  96. }
  97. .actions, .bouton.presse {
  98. float:left;
  99. }
  100. }
  101. #index {
  102. .vers-index {
  103. display: none;
  104. }
  105. .projets {
  106. .dossier {
  107. font-weight: 600;
  108. color: lighten(@violet,25%);
  109. }
  110. .name {
  111. }
  112. }
  113. }
  114. @media (min-width: @screen-md) {
  115. body {
  116. margin-left: 350px;
  117. }
  118. nav.projets.sidebar {
  119. margin: 0;
  120. height: 100%;
  121. position: absolute;
  122. left: 0;
  123. top: 0;
  124. width: 333px;
  125. overflow-y: auto;
  126. }
  127. }