You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

476 lines
7.0 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. @media(max-width: 991px) {
  17. .intro-area,
  18. .footnote-area {
  19. padding: 15px;
  20. }
  21. .grid-row-open {
  22. top: 0;
  23. }
  24. .layout-main {
  25. position: relative;
  26. }
  27. body[data-route^="Form"] {
  28. .page-title h1 {
  29. margin-top: 12px;
  30. }
  31. .page-title .indicator {
  32. display: inline-block;
  33. margin-top: 12px;
  34. }
  35. .page-actions {
  36. padding-top: 20px !important;
  37. padding-bottom: 0px !important;
  38. padding-left: 0px !important;
  39. }
  40. .page-head .sub-heading {
  41. font-weight: normal;
  42. font-size: 10px;
  43. display: block;
  44. position: absolute;
  45. right: 140px;
  46. min-width: 200px;
  47. }
  48. .title-text {
  49. margin-top: 10px;
  50. //margin-left: 10px;
  51. }
  52. }
  53. // navbar & breadcrumbs
  54. .toggle-navbar-new-comments {
  55. padding: 8px 0px !important;
  56. }
  57. .navbar > .container > .navbar-header {
  58. float: left;
  59. width: 80%;
  60. }
  61. .navbar > .container > .navbar-right {
  62. float: right;
  63. }
  64. .module-item {
  65. padding: 7px 0px !important;
  66. h4 {
  67. font-weight: normal;
  68. }
  69. }
  70. #navbar-breadcrumbs {
  71. margin: 0px;
  72. display: inline-block;
  73. @media(max-width: 480px) {
  74. li {
  75. a {
  76. width: 100px;
  77. overflow: hidden;
  78. white-space: nowrap;
  79. text-overflow: ellipsis;
  80. }
  81. }
  82. }
  83. }
  84. #navbar-breadcrumbs > li,
  85. #navbar-breadcrumbs > li > a {
  86. display: inline-block;
  87. vertical-align: middle;
  88. }
  89. #navbar-breadcrumbs > li > a:before {
  90. .breadcrumb-divider-left();
  91. }
  92. // select all except last 2
  93. #navbar-breadcrumbs li:not(:nth-last-child(-n+1)) {
  94. display: none;
  95. }
  96. .navbar-nav {
  97. margin: 0px;
  98. margin-right: -15px;
  99. }
  100. .sidebar .form-group {
  101. margin-bottom: 0px;
  102. }
  103. #sidebar-search {
  104. height: 27px;
  105. }
  106. .sidebar .navbar-search-icon {
  107. float: right;
  108. color: @navbar-default-color;
  109. font-size: inherit;
  110. position: relative;
  111. right: 7px;
  112. top: -20px;
  113. height: 0;
  114. }
  115. .sidebar form {
  116. padding: 7px;
  117. }
  118. .sidebar .main-menu {
  119. position: absolute;
  120. left: 0;
  121. right: 0;
  122. top: 0;
  123. bottom: 41px;
  124. overflow-y: auto;
  125. }
  126. .sidebar .user-menu {
  127. padding: 9px 14px;
  128. background-color: @navbar-default-bg;
  129. position: absolute;
  130. left: 0;
  131. bottom: 0;
  132. right: 0;
  133. }
  134. .sidebar .user-menu,
  135. .sidebar .user-menu .octicon {
  136. color: @navbar-default-color;
  137. }
  138. .sidebar .user-menu img {
  139. margin-top: -1px;
  140. }
  141. // navbar center
  142. body[data-route^="Module"] {
  143. .navbar-center-show;
  144. }
  145. // show home when no breadcrumbs
  146. body.no-breadcrumbs .navbar .navbar-home& {
  147. display: inline-block !important;
  148. padding-left: 0px;
  149. margin-left: 0px;
  150. padding-top: 6px;
  151. &:before {
  152. .breadcrumb-divider();
  153. .breadcrumb-divider-left();
  154. }
  155. &:hover:before,
  156. &:focus:before,
  157. &:active:before {
  158. color: @text-color !important;
  159. }
  160. }
  161. body[data-route=""],
  162. body[data-route="desktop"] {
  163. .navbar .navbar-home {
  164. // display: none !important;
  165. padding: 8px 10px;
  166. &:before {
  167. display: none;
  168. }
  169. img {
  170. margin-top: 0;
  171. }
  172. }
  173. .toggle-sidebar {
  174. display: none !important;
  175. }
  176. }
  177. body[data-sidebar="0"] {
  178. .toggle-sidebar {
  179. display: none !important;
  180. }
  181. #navbar-breadcrumbs, .navbar-home {
  182. margin-left: 15px !important;
  183. }
  184. }
  185. }
  186. @media(max-width: 767px) {
  187. .toggle-sidebar {
  188. margin-right: 0;
  189. }
  190. body[data-route^="Form"]{
  191. .page-title {
  192. .title-text {
  193. font-size: 16px;
  194. width: calc(~"100% - 30px");
  195. }
  196. .indicator {
  197. float: left;
  198. margin-top: 10px;
  199. margin-right: 5px;
  200. }
  201. }
  202. }
  203. .modal {
  204. .modal-dialog {
  205. margin: 0px;
  206. padding: 0px;
  207. width: 100%;
  208. background-color: #fff;
  209. }
  210. .modal-content {
  211. border-radius: 0px;
  212. border: none;
  213. height: 100%;
  214. }
  215. .modal-body .form-layout {
  216. margin: -15px;
  217. }
  218. .file-upload {
  219. .input-upload {
  220. width: 100%;
  221. text-align: center;
  222. .btn-browse {
  223. width: 100%;
  224. }
  225. }
  226. .web-link-wrapper {
  227. display: block;
  228. width: 100% !important;
  229. text-align: center;
  230. .file-upload-or {
  231. display: block;
  232. margin: 15px 24px;
  233. }
  234. .input-link {
  235. width: 100% !important;
  236. }
  237. }
  238. }
  239. }
  240. .layout-main-section-wrapper {
  241. padding: 0px;
  242. }
  243. .layout-main-section {
  244. border-left-color: transparent !important;
  245. border-right-color: transparent !important;
  246. }
  247. // listviews
  248. .list-row {
  249. padding: 13px 15px !important;
  250. }
  251. .doclist-row& {
  252. position: relative;
  253. padding-right: 10px;
  254. .list-id {
  255. font-weight: normal;
  256. }
  257. .list-row-id {
  258. left: 18px;
  259. text-align: left;
  260. margin-top: 3px;
  261. }
  262. &.has-checkbox .list-row-id {
  263. left: 40px;
  264. }
  265. .list-row-indicator {
  266. position: absolute;
  267. right: 0px;
  268. top: -20px;
  269. }
  270. .list-row-modified {
  271. margin-right: -10px;
  272. }
  273. .list-row-left {
  274. z-index: 1;
  275. }
  276. .list-row-right {
  277. float: right;
  278. .list-row-indicator {
  279. top: 4px;
  280. // bigger indicators for list
  281. .indicator::before, .indicator::after {
  282. height: 12px;
  283. width: 12px;
  284. border-radius: 12px;
  285. }
  286. }
  287. }
  288. .list-row-right.no-right-column {
  289. position: absolute;
  290. top: 0;
  291. right: 10px;
  292. left: -10px;
  293. width: 100%;
  294. }
  295. }
  296. // chat
  297. body[data-route^="chat"] {
  298. .navbar-center-show;
  299. }
  300. #page-chat {
  301. .layout-side-section {
  302. position: relative;
  303. left: 0px;
  304. border-right: 1px solid @border-color;
  305. padding-left: 0px;
  306. float: left;
  307. // hack! to prevent overlap of borders
  308. width: 76px;
  309. }
  310. .layout-main-section-wrapper {
  311. position: absolute;
  312. left: 75px;
  313. right: 0px;
  314. border-left: 1px solid @border-color;
  315. float: left;
  316. }
  317. .module-sidebar-item {
  318. margin: 0px;
  319. .chat-sidebar-link {
  320. padding: 15px;
  321. }
  322. }
  323. .timeline-head {
  324. padding: 15px 15px 7px;
  325. }
  326. .list-row {
  327. padding: 7px 0px;
  328. }
  329. .message-row-right {
  330. margin-top: 10px;
  331. text-align: left;
  332. }
  333. }
  334. body[data-route^="Form"] {
  335. .page-head .sub-heading {
  336. right: 90px;
  337. }
  338. }
  339. .timeline {
  340. &::before {
  341. content: none;
  342. }
  343. .timeline-new-email {
  344. margin: 20px 0;
  345. padding-left: 15px;
  346. &::before {
  347. content: none;
  348. }
  349. }
  350. .timeline-item {
  351. &.user-content {
  352. margin: 20px 15px;
  353. .media-body {
  354. margin-left: 0;
  355. max-width: 100%;
  356. overflow: hidden;
  357. &:before {
  358. content: none;
  359. }
  360. }
  361. .action-btns {
  362. padding: 5px 10px 2px 5px;
  363. }
  364. .comment-header{
  365. padding: 7px 10px;
  366. .links-active {
  367. padding-right: 10px;
  368. }
  369. }
  370. .avatar-medium {
  371. margin-right: 10px;
  372. }
  373. .reply {
  374. padding: 10px;
  375. }
  376. .commented-on-small{
  377. display: inline-block;
  378. }
  379. .commented-on-small{
  380. display: inline-block;
  381. }
  382. }
  383. &.notification-content {
  384. padding-left: 15px;
  385. margin: 20px 0;
  386. &::before {
  387. content: none;
  388. }
  389. .small {
  390. padding-left: 0;
  391. }
  392. }
  393. .delivery-status-indicator {
  394. float: left;
  395. margin: 0 5px 0 0;
  396. }
  397. }
  398. .asset-details {
  399. line-height: 24px; /*Height of avtar image -36px to align text center vertically*/
  400. }
  401. }
  402. }