Skip to content

Commit e212c66

Browse files
Fix modal background and search icon (aframevr#837)
* Stylus doesn't know about the new rgb syntax, so it removed the alpha, revert to the stylus rgba function and ignore rules in stylelint * Increase font-weight for modal title * Remove non existing animatetop animation * Fix search icon position in texture modal
1 parent 2df072e commit e212c66

4 files changed

Lines changed: 15 additions & 11 deletions

File tree

src/style/index.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ body.aframe-inspector-opened
169169
z-index 999999999
170170

171171
svg
172-
color rgb(219 97 162)
172+
color rgb(219, 97, 162)
173173
fill currentColor
174174

175175
.sponsor-btn:hover

src/style/scenegraph.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
background var(--color-base-300)
138138
border 1px solid var(--color-base-300)
139139
border-radius 4px
140-
box-shadow 0 4px 12px rgb(0 0 0 / 30%)
140+
box-shadow 0 4px 12px rgba(0, 0, 0, 0.3)
141141
max-height 300px
142142
overflow-y auto
143143
position absolute

src/style/textureModal.styl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.modal
22
animation animateopacity 0.2s ease-out
3-
background-color rgb(0 0 0)
4-
background-color rgb(0 0 0 / 60%)
3+
background-color rgba(0, 0, 0, 0.6)
54
display flex
65
height 100%
76
left 0
@@ -13,19 +12,16 @@
1312

1413
.modal h3
1514
font-size 18px
16-
font-weight 100
15+
font-weight 600
1716
margin 0.6em 0
1817

1918
#textureModal .modal-content
2019
height calc(100% - 50px)
2120
width calc(100% - 50px)
2221

2322
.modal-content
24-
animation animatetop 0.2s ease-out
25-
animation-duration 0.2s
26-
animation-name animatetop
2723
background-color var(--color-base-200)
28-
box-shadow 0 4px 8px 0 rgb(0 0 0 / 50%), 0 6px 20px 0 rgb(0 0 0 / 50%)
24+
box-shadow 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5)
2925
margin auto
3026
overflow hidden
3127
padding 0
@@ -70,7 +66,7 @@
7066

7167
.gallery li
7268
border-radius 2px
73-
box-shadow 0 0 6px rgb(0 0 0 / 60%)
69+
box-shadow 0 0 6px rgba(0, 0, 0, 0.6)
7470
cursor pointer
7571
margin 8px
7672
overflow hidden
@@ -194,9 +190,14 @@
194190
position relative
195191
width 200px
196192

193+
.assets.search input
194+
box-sizing border-box
195+
padding-right 20px
196+
width 100%
197+
197198
.assets.search svg
198199
position absolute
199-
right 0
200+
right 5px
200201
top 5px
201202

202203
.new_asset_options

stylelint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ module.exports = {
33
plugins: ['stylelint-order'],
44
ignoreFiles: ['src/style/themes.css'],
55
rules: {
6+
'alpha-value-notation': null,
7+
'color-function-alias-notation': null,
8+
'color-function-notation': null,
69
'declaration-property-value-no-unknown': null,
710
'import-notation': null,
811
'media-feature-range-notation': 'prefix',

0 commit comments

Comments
 (0)