Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 1 | @import "../../../../frappe/frappe/public/less/variables.less"; |
| 2 | |
Prateeksha Singh | b8e9c9b | 2018-01-25 09:18:32 +0530 | [diff] [blame] | 3 | body[data-route^="Hub/"] { |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 4 | .hub-icon { |
| 5 | width: 40px; |
Prateeksha Singh | 420c790 | 2018-04-05 14:44:16 +0530 | [diff] [blame] | 6 | height: 40px; |
Prateeksha Singh | b8e9c9b | 2018-01-25 09:18:32 +0530 | [diff] [blame] | 7 | } |
| 8 | |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 9 | .hub-page-title { |
| 10 | margin-left: 10px; |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | .img-wrapper { |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 14 | border: 1px solid #d1d8dd; |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 15 | border-radius: 3px; |
| 16 | padding: 12px; |
| 17 | overflow: hidden; |
| 18 | text-align: center; |
| 19 | white-space: nowrap; |
| 20 | |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 21 | .helper { |
| 22 | height: 100%; |
| 23 | display: inline-block; |
| 24 | vertical-align: middle; |
| 25 | } |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 26 | } |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 27 | |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 28 | .tree { |
| 29 | margin: 10px 0px; |
| 30 | padding: 0px; |
| 31 | height: 100%; |
| 32 | position: relative; |
| 33 | } |
| 34 | |
| 35 | .tree.with-skeleton.opened::before { |
| 36 | left: 9px; |
| 37 | top: 14px; |
| 38 | height: calc(~"100% - 32px"); |
| 39 | } |
| 40 | |
| 41 | .list-header-icon { |
| 42 | width: 72px; |
| 43 | border-radius: 4px; |
| 44 | flex-shrink: 0; |
| 45 | margin: 10px; |
| 46 | padding: 1px; |
| 47 | border: 1px solid @border-color; |
| 48 | height: 72px; |
| 49 | display: flex; |
| 50 | align-items: center; |
| 51 | justify-content: center; |
| 52 | |
| 53 | img { |
| 54 | border-radius: 4px; |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 55 | } |
| 56 | } |
| 57 | |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 58 | .star-icon.fa-star { |
| 59 | color: @indicator-orange; |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 60 | } |
| 61 | |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 62 | .octicon-heart.liked { |
| 63 | color: @indicator-red; |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 64 | } |
| 65 | |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 66 | .margin-vertical-10 { |
| 67 | margin: 10px 0px; |
| 68 | } |
| 69 | |
| 70 | .margin-vertical-15 { |
| 71 | margin: 15px 0px; |
| 72 | } |
| 73 | |
| 74 | .frappe-list .result { |
| 75 | min-height: 100px; |
| 76 | } |
Prateeksha Singh | 420c790 | 2018-04-05 14:44:16 +0530 | [diff] [blame] | 77 | |
| 78 | .frappe-control[data-fieldtype="Attach Image"] { |
| 79 | width: 140px; |
| 80 | height: 180px; |
| 81 | margin-top: 20px; |
| 82 | } |
| 83 | |
| 84 | .frappe-control[data-fieldtype="Attach Image"] .form-group { |
| 85 | display: none; |
| 86 | } |
| 87 | |
| 88 | .frappe-control[data-fieldtype="Attach Image"] .clearfix { |
| 89 | display: none; |
| 90 | } |
| 91 | |
| 92 | .missing-image { |
| 93 | display: block; |
| 94 | position: relative; |
| 95 | border-radius: 4px; |
| 96 | border: 1px solid #d1d8dd; |
| 97 | border-radius: 6px; |
| 98 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); |
| 99 | } |
| 100 | .missing-image .octicon { |
| 101 | position: relative; |
| 102 | top: 50%; |
| 103 | transform: translate(0px, -50%); |
| 104 | -webkit-transform: translate(0px, -50%); |
| 105 | } |
| 106 | .attach-image-display { |
| 107 | display: block; |
| 108 | position: relative; |
| 109 | border-radius: 4px; |
| 110 | } |
| 111 | .img-container { |
| 112 | height: 100%; |
| 113 | width: 100%; |
| 114 | padding: 2px; |
| 115 | display: flex; |
| 116 | align-items: center; |
| 117 | justify-content: center; |
| 118 | position: relative; |
| 119 | border: 1px solid #d1d8dd; |
| 120 | border-radius: 6px; |
| 121 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); |
| 122 | } |
| 123 | .img-overlay { |
| 124 | display: flex; |
| 125 | align-items: center; |
| 126 | justify-content: center; |
| 127 | position: absolute; |
| 128 | width: 100%; |
| 129 | height: 100%; |
| 130 | color: #777777; |
| 131 | background-color: rgba(255, 255, 255, 0.7); |
| 132 | opacity: 0; |
| 133 | } |
| 134 | .img-overlay:hover { |
| 135 | opacity: 1; |
| 136 | cursor: pointer; |
| 137 | } |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 138 | } |
| 139 | |
| 140 | .image-view-container { |
| 141 | .image-view-body { |
| 142 | &:hover .like-button { |
| 143 | opacity: 0.7; |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | .like-button { |
| 148 | bottom: 10px !important; |
| 149 | left: 10px !important; |
| 150 | width: 36px; |
| 151 | height: 36px; |
| 152 | opacity: 0; |
| 153 | font-size: 16px; |
| 154 | color: @text-color; |
| 155 | position: absolute; |
| 156 | |
| 157 | // show zoom button on mobile devices |
| 158 | @media (max-width: @screen-xs) { |
| 159 | opacity: 0.5 |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | .image-view-body:hover .like-button { |
| 164 | opacity: 0.7; |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | .rating-area .star-icon { |
| 169 | cursor: pointer; |
| 170 | font-size: 15px; |
| 171 | } |