Skip to content

Commit 42eb9ab

Browse files
committed
fix: some layout issues
1 parent b53b12e commit 42eb9ab

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// These styles are for CssColorPreview feature
2+
// Check `extensionsIntegrated/CSSColorPreview for more reference
3+
/* Single color preview */
4+
.ico-cssColorPreview {
5+
border: solid 1px rgba(0, 0, 0, 0.2);
6+
display: inline-block;
7+
top: .15em;
8+
height:.8em;
9+
width: .8em;
10+
margin-left: .15em;
11+
position: relative;
12+
}
13+
14+
/* Multiple colors preview container (this is a div) */
15+
.ico-multiple-cssColorPreview {
16+
position: relative;
17+
display: inline-block;
18+
top: .15em;
19+
width: .8em;
20+
height:.8em;
21+
margin-left: .15em;
22+
border: solid 1px rgba(0, 0, 0, 0.2);
23+
}
24+
25+
/* For individual color boxes, they will be added inside the main .ico-multiple-cssColorPreview div */
26+
.ico-multiple-cssColorPreview .color-box {
27+
position: absolute;
28+
width: .35em;
29+
height: .35em;
30+
box-sizing: border-box;
31+
}

src/styles/brackets.less

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
@import "Extn-NavigationAndHistory.less";
4343
@import "Extn-RecentProjects.less";
4444
@import "Extn-DisplayShortcuts.less";
45+
@import "Extn-CSSColorPreview.less";
4546

4647
/* Overall layout */
4748

@@ -3521,36 +3522,3 @@ label input {
35213522
opacity: 1;
35223523
}
35233524
}
3524-
3525-
// These styles are for CssColorPreview feature
3526-
// Check `extensionsIntegrated/CSSColorPreview for more reference
3527-
/* Single color preview */
3528-
.ico-cssColorPreview {
3529-
border: solid 1px rgba(0, 0, 0, 0.2);
3530-
display: inline-block;
3531-
height: 14px;
3532-
width: 14px;
3533-
margin-left: 6px;
3534-
position: absolute;
3535-
top: 8px;
3536-
z-index: 99999;
3537-
}
3538-
3539-
/* Multiple colors preview container (this is a div) */
3540-
.ico-multiple-cssColorPreview {
3541-
position: relative;
3542-
display: inline-block;
3543-
width: 14px;
3544-
height: 14px;
3545-
margin-left: 6px;
3546-
border: solid 1px rgba(0, 0, 0, 0.2);
3547-
z-index: 99999;
3548-
}
3549-
3550-
/* For individual color boxes, they will be added inside the main .ico-multiple-cssColorPreview div */
3551-
.ico-multiple-cssColorPreview .color-box {
3552-
position: absolute;
3553-
width: 6px;
3554-
height: 6px;
3555-
box-sizing: border-box;
3556-
}

0 commit comments

Comments
 (0)