blob: bdca28f1e7467727fda4011ea00ee9a091af4a66 [file] [log] [blame]
Faris Ansarifd345f82017-10-05 11:17:30 +05301@import "../../../../frappe/frappe/public/less/variables.less";
2
Prateeksha Singhb8e9c9b2018-01-25 09:18:32 +05303body[data-route^="Hub/"] {
Prateeksha Singhb60a52b2018-04-03 10:44:13 +05304 .hub-icon {
5 width: 40px;
Prateeksha Singh420c7902018-04-05 14:44:16 +05306 height: 40px;
Prateeksha Singhb8e9c9b2018-01-25 09:18:32 +05307 }
8
Prateeksha Singhb60a52b2018-04-03 10:44:13 +05309 .hub-page-title {
10 margin-left: 10px;
Faris Ansarifd345f82017-10-05 11:17:30 +053011 }
12
13 .img-wrapper {
Prateeksha Singhb60a52b2018-04-03 10:44:13 +053014 border: 1px solid #d1d8dd;
Faris Ansarifd345f82017-10-05 11:17:30 +053015 border-radius: 3px;
16 padding: 12px;
17 overflow: hidden;
18 text-align: center;
19 white-space: nowrap;
20
Faris Ansarifd345f82017-10-05 11:17:30 +053021 .helper {
22 height: 100%;
23 display: inline-block;
24 vertical-align: middle;
25 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +053026 }
Faris Ansarifd345f82017-10-05 11:17:30 +053027
Prateeksha Singhb60a52b2018-04-03 10:44:13 +053028 .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 Ansarifd345f82017-10-05 11:17:30 +053055 }
56 }
57
Prateeksha Singhb60a52b2018-04-03 10:44:13 +053058 .star-icon.fa-star {
59 color: @indicator-orange;
Faris Ansarifd345f82017-10-05 11:17:30 +053060 }
61
Prateeksha Singhb60a52b2018-04-03 10:44:13 +053062 .octicon-heart.liked {
63 color: @indicator-red;
Faris Ansarifd345f82017-10-05 11:17:30 +053064 }
65
Prateeksha Singhb60a52b2018-04-03 10:44:13 +053066 .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 Singh420c7902018-04-05 14:44:16 +053077
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 Singhb60a52b2018-04-03 10:44:13 +0530138}
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}