Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

396 lignes
5.6 KiB

  1. @import "variables.less";
  2. @import "mixins.less";
  3. html {
  4. min-height: 100%;
  5. }
  6. body {
  7. height: 100%;
  8. // The html and body elements cannot have any padding or margin.
  9. margin: 0px;
  10. padding: 0px !important;
  11. }
  12. html,
  13. body {
  14. overflow-x: hidden; //Prevent scroll on narrow devices
  15. }
  16. .hide-form-sidebar {
  17. .form-sidebar {
  18. display: none !important;
  19. }
  20. }
  21. .sidebar-padding {
  22. padding: 12px 14px;
  23. }
  24. body[data-route=""] .main-menu,
  25. body[data-route="desk"] .main-menu {
  26. .desk-sidebar {
  27. display: block !important;
  28. }
  29. .hide-form-sidebar;
  30. }
  31. body[data-route^="List"] .main-menu {
  32. .list-sidebar {
  33. display: block !important;
  34. }
  35. .hide-form-sidebar;
  36. }
  37. body[data-route^="Module"] .main-menu {
  38. .module-sidebar {
  39. display: block !important;
  40. }
  41. .hide-form-sidebar;
  42. }
  43. .layout-side-section {
  44. font-size: @text-medium;
  45. padding-right: 0px;
  46. > .divider {
  47. display: none !important;
  48. }
  49. .sidebar-menu > li > a {
  50. display: inline-block;
  51. }
  52. .sidebar-menu {
  53. margin: 30px 0px;
  54. }
  55. }
  56. .layout-side-section .sidebar-menu > li > a& {
  57. &:hover,
  58. &:focus,
  59. &:active {
  60. .underline-hover;
  61. }
  62. }
  63. .sidebar-menu {
  64. .badge {
  65. position: absolute;
  66. font-weight: normal;
  67. right: 0px;
  68. top: 0px;
  69. padding-bottom: 4px;
  70. }
  71. .octicon {
  72. font-size: 12px;
  73. }
  74. h6, .h6 {
  75. text-transform: uppercase;
  76. color: @text-muted;
  77. font-size: @text-small;
  78. margin-top: 0px;
  79. }
  80. > li {
  81. position: relative;
  82. margin-bottom: 7px;
  83. }
  84. }
  85. // form sidebar
  86. .form-sidebar {
  87. .form-tags {
  88. .tag-area {
  89. margin-top: -3px;
  90. margin-left: -4px;
  91. }
  92. input {
  93. font-size: @text-medium !important;
  94. color: @text-color !important;
  95. font-style: italic;
  96. }
  97. .tagit-new {
  98. clear: both;
  99. margin-top: 2px;
  100. margin-bottom: -1px;
  101. }
  102. }
  103. a.close {
  104. position: absolute;
  105. right: 5px;
  106. }
  107. // .attachment-row .icon-lock {
  108. // color: @text-warning;
  109. // display: inline-block;
  110. // margin-top: 1px;
  111. // }
  112. .attachment-row a.close {
  113. margin-top: -5px;
  114. }
  115. .form-shared, .form-viewers {
  116. .share-doc-btn {
  117. cursor: pointer;
  118. }
  119. .octicon {
  120. position: relative;
  121. top: 2px;
  122. left: 7px;
  123. }
  124. .avatar {
  125. margin-top: 5px;
  126. }
  127. .shared-with-everyone {
  128. border-style: solid;
  129. border-color: @btn-bg;
  130. background-color: @btn-bg;
  131. .octicon {
  132. color: @text-color !important;
  133. }
  134. }
  135. }
  136. .liked-by .octicon-heart {
  137. font-size: 16px;
  138. cursor: pointer;
  139. }
  140. .sidebar-image-section {
  141. margin-top: 15px;
  142. margin-bottom: 0px;
  143. cursor: pointer;
  144. .sidebar-image {
  145. width: 100%;
  146. height: 0;
  147. padding-bottom: 100%;
  148. border-radius: 6px;
  149. background-size: cover;
  150. background-repeat: no-repeat;
  151. background-position: center center;
  152. }
  153. .standard-image {
  154. font-size: 72px;
  155. border-radius: 6px;
  156. }
  157. .sidebar-image-wrapper:after {
  158. content: '\A';
  159. position: absolute;
  160. width: 100%; height:100%;
  161. top:0; left:0;
  162. background: #fff;
  163. opacity: 0;
  164. transition: all 0.5s;
  165. -webkit-transition: all 0.6s;
  166. }
  167. .sidebar-image-wrapper:hover:after {
  168. opacity: 0.5;
  169. }
  170. }
  171. }
  172. .form-sidebar .form-shared .share-doc-btn& {
  173. &:hover,
  174. &:focus,
  175. &:active {
  176. background-color: @btn-bg;
  177. .octicon-plus {
  178. color: @text-color !important;
  179. }
  180. }
  181. }
  182. .sidebar-left .form-sidebar {
  183. .form-tags,
  184. .assignment-row,
  185. .form-shared,
  186. .liked-by,
  187. .modified-by,
  188. .created-by,
  189. .tags-label,
  190. .shared-with-label,
  191. .form-viewers,
  192. .viewers-label {
  193. .sidebar-padding;
  194. }
  195. .assigned-to-label,
  196. .attachments-label,
  197. .tags-label,
  198. .shared-with-label,
  199. .viewers-label {
  200. .sidebar-padding;
  201. margin-bottom: 0px;
  202. }
  203. .assigned-to-label,
  204. .tags-label,
  205. .attachments-label.has-attachments,
  206. .shared-with-label,
  207. .viewers-label {
  208. padding-bottom: 0px;
  209. }
  210. a.close {
  211. right: 5px;
  212. }
  213. .assignment-row a.close {
  214. margin-top: -12px;
  215. }
  216. }
  217. .layout-side-section .form-sidebar {
  218. .modified-by,
  219. .created-by {
  220. margin: 30px 0px;
  221. }
  222. }
  223. // list sidebar
  224. .layout-side-section .list-sidebar {
  225. margin-top: -15px;
  226. }
  227. .layout-side-section {
  228. .overlay-sidebar {
  229. @media (max-width: 991px) {
  230. margin-top: 0 !important;
  231. position: fixed;
  232. background: white;
  233. top: 0;
  234. left: 0;
  235. transform: translateX(-110%);
  236. z-index: 9999;
  237. box-shadow: 5px 0 25px 0px rgba(0,0,0,0.3);
  238. height: 100%;
  239. width: 40%;
  240. display: block !important;
  241. transition: transform 200ms ease-in-out;
  242. &.opened {
  243. transform: translateX(0);
  244. overflow-y: auto;
  245. }
  246. .divider {
  247. height: 1px;
  248. background-color: #d8dfe5;
  249. opacity: 0.7;
  250. }
  251. li:not(.divider):not(.tagit-new):not(.module-sidebar-item) {
  252. padding: 10px 15px;
  253. }
  254. .modified-by, .created-by {
  255. margin: 0;
  256. }
  257. .badge {
  258. top: 9px;
  259. right: 15px;
  260. }
  261. .reports-dropdown {
  262. margin-top: 10px;
  263. margin-bottom: -10px;
  264. li:not(.divider) {
  265. padding: 12.5px 0 !important;
  266. }
  267. li.divider {
  268. height: 0;
  269. }
  270. }
  271. }
  272. @media (max-width: 767px) {
  273. width: 70%;
  274. }
  275. }
  276. div.close-sidebar {
  277. position: fixed;
  278. top: 0;
  279. right: 0;
  280. opacity: 0.3;
  281. background: #000;
  282. z-index: 1041;
  283. height: 100%;
  284. width: 100%;
  285. }
  286. .sidebar-menu {
  287. @media (max-width: 991px) {
  288. margin: 0;
  289. }
  290. }
  291. .module-sidebar-nav {
  292. @media (max-width: 991px) {
  293. padding-left: 0;
  294. padding-right: 0;
  295. .module-link {
  296. padding: 15px 15px 15px 25px;
  297. }
  298. }
  299. }
  300. }
  301. .sidebar-left .list-sidebar {
  302. .stat-label,
  303. .stat-no-records {
  304. .sidebar-padding;
  305. }
  306. .stat-label {
  307. margin-bottom: -10px;
  308. }
  309. }
  310. .list-sidebar .list-tag-preview {
  311. padding: 5px !important;
  312. margin-left: 5px;
  313. display: inline !important;
  314. }
  315. .list-sidebar .list-tag-preview&,
  316. a.close {
  317. &:hover,
  318. &:active,
  319. &:focus {
  320. border-color: transparent !important;
  321. }
  322. }
  323. // module sidebar
  324. .layout-side-section .module-sidebar-nav {
  325. margin-top: 15px;
  326. }