Skip to content

Commit ca5fdff

Browse files
authored
Merge pull request element-hq#4690 from vector-im/rxl881/widgetPermissions
Widget permissions styling and icon
2 parents 068a2b8 + 317ff8c commit ca5fdff

3 files changed

Lines changed: 69 additions & 0 deletions

File tree

‎src/skins/vector/css/_common.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ textarea {
319319
cursor: help;
320320
transition-duration: 200ms;
321321
font-size: smaller;
322+
filter: opacity(0.5);
322323
}
323324

324325
.mx_Beta:hover {

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_AppsDrawer.scss‎

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,20 @@ limitations under the License.
8383
border: 1px solid transparent;
8484
}
8585

86+
.mx_AppTileMenuBarWidgetDelete {
87+
filter: none;
88+
}
89+
8690
.mx_AppTileMenuBarWidget:hover {
8791
border: 1px solid $primary-hairline-color;
8892
border-radius: 2px;
8993
}
9094

95+
.mx_AppTileBody{
96+
height: 350px;
97+
overflow: hidden;
98+
}
99+
91100
.mx_AppTileBody iframe {
92101
width: 100%;
93102
height: 350px;
@@ -167,3 +176,52 @@ form.mx_Custom_Widget_Form div {
167176
margin-top: 10px;
168177
margin-bottom: 10px;
169178
}
179+
180+
.mx_AppPermissionWarning {
181+
text-align: center;
182+
padding: 30px 0;
183+
background-color: $primary-bg-color;
184+
}
185+
186+
.mx_AppPermissionWarningImage {
187+
margin: 10px 0;
188+
}
189+
190+
.mx_AppPermissionWarningImage img {
191+
width: 150px;
192+
}
193+
194+
.mx_AppPermissionWarningText {
195+
max-width: 400px;
196+
margin: 10px auto 10px auto;
197+
color: $primary-fg-color;
198+
}
199+
200+
.mx_AppPermissionWarningTextLabel {
201+
font-weight: bold;
202+
}
203+
204+
.mx_AppPermissionWarningTextURL {
205+
color: $accent-color;
206+
}
207+
208+
.mx_AppPermissionButton {
209+
padding: 5px;
210+
border-radius: 5px;
211+
color: $warning-color;
212+
background-color: $primary-bg-color;
213+
}
214+
215+
.mx_AppPermissionButton:hover {
216+
background-color: $primary-fg-color;
217+
cursor: pointer;
218+
}
219+
220+
.mx_AppLoading {
221+
min-height: 305px;
222+
display: flex;
223+
flex-direction: column;
224+
justify-content: center;
225+
align-items: center;
226+
font-weight: bold;
227+
}
Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)