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.
 
 
 
 
 
 

594 lines
8.5 KiB

  1. @import "variables.less";
  2. .no-result {
  3. padding: 150px 15px;
  4. color: @text-muted;
  5. }
  6. .result-list {
  7. min-height: 400px;
  8. }
  9. .sort-selector {
  10. .dropdown:hover {
  11. text-decoration: underline;
  12. }
  13. }
  14. .list-filters {
  15. position: relative;
  16. .sort-selector {
  17. position: absolute;
  18. top: 15px;
  19. right: 15px;
  20. }
  21. }
  22. .show_filters {
  23. padding: 15px 15px 0px;
  24. border-bottom: 1px solid @border-color;
  25. }
  26. .set-filters {
  27. padding-bottom: 4px;
  28. padding-right: 120px;
  29. @media (max-width: @screen-xs) {
  30. padding-right: 80px;
  31. }
  32. }
  33. .set-filters .btn {
  34. margin-bottom: 10px;
  35. }
  36. .set-filters .btn-group {
  37. margin-right: 10px;
  38. }
  39. .set-filters .btn-group .btn-default {
  40. background-color: transparent;
  41. border: 1px solid @border-color;
  42. color: @text-muted;
  43. }
  44. .filter-box {
  45. border-bottom: 1px solid @border-color;
  46. // margin: 0px -15px;
  47. padding: 10px 15px 3px;
  48. .remove-filter {
  49. margin-top: 6px;
  50. margin-left: 15px;
  51. }
  52. .filter_field {
  53. padding-right: 15px;
  54. width: calc(100% - 36px);
  55. .frappe-control {
  56. position: relative;
  57. }
  58. }
  59. }
  60. // for sm and above
  61. @media (min-width: 768px) {
  62. .filter-box .row > div[class*="col-sm-"] {
  63. padding-right: 0px;
  64. }
  65. .filter_field {
  66. width: 65% !important;
  67. .frappe-control {
  68. position: relative;
  69. }
  70. }
  71. }
  72. .list-row {
  73. padding: 9px 15px;
  74. border-bottom: 1px solid @border-color;
  75. cursor: pointer;
  76. transition: color 0.2s;
  77. -webkit-transition: color 0.2s;
  78. }
  79. .list-row .h6 {
  80. margin-top: 0px;
  81. margin-bottom: 0px;
  82. }
  83. .list-row-head {
  84. background-color: @panel-bg;
  85. border-bottom: 1px solid @border-color !important;
  86. }
  87. .list-row:hover, .grid-row:hover {
  88. background-color: @panel-bg;
  89. }
  90. .no-hover:hover {
  91. background-color: transparent !important;
  92. }
  93. .list-row:last-child {
  94. border-bottom: 0px;
  95. }
  96. .list-row-head {
  97. background-color: @panel-bg;
  98. border-bottom: 1px solid @border-color !important;
  99. }
  100. .list-row .h6 {
  101. margin-top: 0px;
  102. margin-bottom: 0px;
  103. }
  104. .list-item-col {
  105. white-space: nowrap;
  106. text-overflow: ellipsis;
  107. height: 30px;
  108. padding-top: 3px;
  109. }
  110. .list-paging-area {
  111. padding: 10px 15px;
  112. border-top: 1px solid @border-color;
  113. }
  114. .list-value {
  115. display: table;
  116. vertical-align: middle;
  117. .list-row-checkbox, .liked-by, .list-id, .list-select-all {
  118. display: table-cell;
  119. vertical-align: middle;
  120. }
  121. .list-row-checkbox, .list-select-all {
  122. margin: 0;
  123. margin-right: 7px;
  124. }
  125. .liked-by {
  126. padding-top: 2px;
  127. }
  128. .list-col-title {
  129. vertical-align: middle;
  130. }
  131. }
  132. .progress {
  133. height: 10px;
  134. }
  135. .doclist-row {
  136. font-size: 12px;
  137. }
  138. .likes-count {
  139. display: inline-block;
  140. width: 15px;
  141. margin-left: -5px;
  142. color: @text-muted;
  143. font-size: 12px;
  144. }
  145. .doclist-row .docstatus .octicon {
  146. font-size: 12px;
  147. }
  148. .doclist-row .progress {
  149. margin-top: 12px;
  150. }
  151. .filterable {
  152. cursor: pointer;
  153. }
  154. .doclist-row .label {
  155. margin-right: 8px;
  156. }
  157. .list-info-row {
  158. float: left;
  159. margin-top: 1px;
  160. }
  161. .list-row-right .modified {
  162. margin-top: 3px;
  163. }
  164. .list-row-right .list-row-modified {
  165. margin-right: 9px;
  166. margin-top: 3px;
  167. }
  168. .list-row-right {
  169. margin-top: -2px;
  170. margin-bottom: -4px;
  171. }
  172. .list-row-right .indicator {
  173. margin-left: 10px;
  174. margin-right: -5px;
  175. }
  176. .side-panel {
  177. border-bottom: 1px solid @border-color;
  178. margin: 0px -15px;
  179. padding: 5px 15px;
  180. }
  181. .listview-main-section {
  182. .octicon-heart {
  183. cursor: pointer;
  184. }
  185. .page-form {
  186. padding-left: 17px;
  187. @media (max-width: @screen-sm) {
  188. padding-left: 25px;
  189. }
  190. .octicon-search {
  191. float: left;
  192. padding-top: 7px;
  193. margin-left: -4px;
  194. margin-right: -4px;
  195. @media (max-width: @screen-sm) {
  196. margin-left: -12px;
  197. }
  198. }
  199. }
  200. }
  201. .like-action.octicon-heart {
  202. color: @heart-color;
  203. }
  204. .list-id {
  205. font-weight: bold;
  206. }
  207. .list-id.seen {
  208. font-weight: normal;
  209. }
  210. .list-col {
  211. height: 20px;
  212. }
  213. .list-value {
  214. vertical-align: middle;
  215. }
  216. @media(max-width: 767px) {
  217. .doclist-row {
  218. font-size: @text-regular;
  219. }
  220. .doclist-row [type='checkbox'] {
  221. display: none;
  222. }
  223. .doclist-row .list-row-right .list-row-modified {
  224. display: none;
  225. }
  226. }
  227. .list-comment-count {
  228. display: inline-block;
  229. width: 37px;
  230. text-align: left;
  231. }
  232. // tags
  233. .tag-row {
  234. padding-left: 55px;
  235. margin-bottom: 0px;
  236. margin-top: -5px;
  237. }
  238. .taggle_placeholder {
  239. top: 0;
  240. left: 5px;
  241. font-size: 11px;
  242. color: @text-muted;
  243. }
  244. .taggle_list {
  245. padding-left: 5px;
  246. margin-bottom: 3px;
  247. .taggle {
  248. font-size: 11px;
  249. padding: 2px 4px;
  250. font-weight: normal;
  251. background-color: @btn-bg;
  252. white-space: normal;
  253. &:hover {
  254. padding: 2px 15px 2px 4px;
  255. background: #cfdce5;
  256. transition: all .2s;
  257. }
  258. }
  259. li {
  260. margin-bottom: 0;
  261. .awesomplete > ul > li {
  262. width: 100%;
  263. }
  264. .awesomplete > ul {
  265. top: 15px;
  266. z-index: 100;
  267. }
  268. }
  269. .close {
  270. right: 5px;
  271. color: @text-color;
  272. font-size: 11px;
  273. }
  274. }
  275. .page-form {
  276. .awesomplete > ul {
  277. min-width: 300px;
  278. }
  279. }
  280. .taggle_input {
  281. padding: 0;
  282. margin-top: 3px;
  283. font-size: 11px;
  284. max-width: 100px;
  285. }
  286. // Image view
  287. .image-view-container {
  288. display: flex;
  289. flex-wrap: wrap;
  290. .image-view-item {
  291. flex: 0 0 100%/4;
  292. padding: 15px;
  293. border-bottom: 1px solid @light-border-color;
  294. border-right: 1px solid @light-border-color;
  295. }
  296. .image-view-item:nth-child(4n) {
  297. border-right: none;
  298. }
  299. .image-view-item:nth-last-child(-n + 4):nth-child(4n + 1),
  300. .image-view-item:nth-last-child(-n + 4):nth-child(4n + 1) ~ .image-view-item {
  301. border-bottom: none;
  302. }
  303. .image-view-header {
  304. margin-bottom: 10px;
  305. }
  306. .image-view-body {
  307. &:hover .zoom-view {
  308. opacity: 0.7;
  309. }
  310. a {
  311. text-decoration: none;
  312. }
  313. }
  314. .image-field {
  315. display: flex;
  316. align-content: center;
  317. align-items: center;
  318. justify-content: center;
  319. position: relative;
  320. height: 200px;
  321. padding: 15px;
  322. img {
  323. max-height: 100%;
  324. }
  325. }
  326. .placeholder-text {
  327. font-size: 72px;
  328. color: @text-extra-muted;
  329. }
  330. .zoom-view {
  331. bottom: 10px !important;
  332. right: 10px !important;
  333. width: 36px;
  334. height: 36px;
  335. opacity: 0;
  336. font-size: 16px;
  337. color: @text-color;
  338. position: absolute;
  339. // show zoom button on mobile devices
  340. @media (max-width: @screen-xs) {
  341. opacity: 0.5
  342. }
  343. }
  344. // 3 columns for small screen
  345. @media(max-width: @screen-sm) {
  346. .image-view-container.three-column;
  347. }
  348. }
  349. .image-view-container.three-column {
  350. .image-view-item {
  351. flex: 0 0 100%/3;
  352. }
  353. .image-view-item:nth-child(3n) {
  354. border-right: none;
  355. }
  356. .image-view-item:nth-last-child(-n + 3):nth-child(3n + 1),
  357. .image-view-item:nth-last-child(-n + 3):nth-child(3n + 1) ~ .image-view-item {
  358. border-bottom: none;
  359. }
  360. .image-view-item:nth-child(4n) {
  361. border-right: 1px solid @light-border-color;
  362. }
  363. .image-view-item:nth-last-child(-n + 4):nth-child(4n + 1),
  364. .image-view-item:nth-last-child(-n + 4):nth-child(4n + 1) ~ .image-view-item {
  365. border-bottom: 1px solid @light-border-color;
  366. }
  367. }
  368. .pswp--svg .pswp__button,
  369. .pswp--svg .pswp__button--arrow--left:before,
  370. .pswp--svg .pswp__button--arrow--right:before {
  371. background-image: url('/assets/frappe/images/default-skin.svg') !important;
  372. }
  373. .pswp--svg .pswp__button--arrow--left,
  374. .pswp--svg .pswp__button--arrow--right {
  375. background: none !important;
  376. }
  377. .pswp__bg {
  378. background-color: #fff !important;
  379. }
  380. // gantt
  381. .gantt {
  382. .details-container {
  383. .heading {
  384. margin-bottom: 10px;
  385. font-size: 12px;
  386. }
  387. .avatar-small {
  388. width: 16px;
  389. height: 16px;
  390. }
  391. .standard-image {
  392. display: block;
  393. }
  394. }
  395. }
  396. .inbox-attachment, .inbox-link {
  397. margin-right: 7px;
  398. }
  399. .select-inbox {
  400. padding: 30px 30px;
  401. }
  402. .inbox-value {
  403. padding-top: 2px;
  404. }
  405. // list view
  406. .list-items {
  407. width: 100%;
  408. }
  409. .list-item-container {
  410. border-bottom: 1px solid @border-color;
  411. &:last-child {
  412. border-bottom: none;
  413. }
  414. }
  415. .list-item-table {
  416. border: 1px solid @border-color;
  417. border-radius: 3px;
  418. }
  419. .list-item {
  420. display: flex;
  421. align-items: center;
  422. cursor: pointer;
  423. height: 40px;
  424. padding-left: 15px;
  425. font-size: @text-medium;
  426. &:hover {
  427. background-color: @panel-bg;
  428. }
  429. @media (max-width: @screen-xs) {
  430. height: 50px;
  431. padding-left: 10px;
  432. font-size: @text-regular;
  433. font-weight: normal;
  434. }
  435. &--head {
  436. background-color: @panel-bg;
  437. border-bottom: 1px solid @border-color;
  438. cursor: auto;
  439. }
  440. input[type=checkbox] {
  441. margin: 0;
  442. margin-right: 5px;
  443. flex: 0 0 12px;
  444. }
  445. .liked-by, .liked-by-filter-button {
  446. display: inline-block;
  447. width: 20px;
  448. margin-right: 10px;
  449. }
  450. }
  451. .list-item__content {
  452. flex: 1;
  453. margin-right: 15px;
  454. display: flex;
  455. align-items: center;
  456. &--flex-2 {
  457. flex: 2;
  458. }
  459. &--activity {
  460. justify-content: flex-end;
  461. margin-right: 5px;
  462. min-width: 110px;
  463. .list-row-modified, .avatar-small {
  464. margin-right: 10px;
  465. }
  466. }
  467. &--indicator span::before {
  468. height: 12px;
  469. width: 12px;
  470. }
  471. &--id {
  472. justify-content: flex-end;
  473. }
  474. }
  475. .frappe-timestamp {
  476. white-space: nowrap;
  477. }