Skip to content

Commit efe861e

Browse files
authored
Add border to help distinguish selected/unselected asset tab (microsoft#7833)
1 parent b86f27d commit efe861e

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

theme/asset-editor.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,26 @@
5555
width: 100%;
5656
display: flex;
5757
flex-direction: row;
58+
border-bottom: 1px solid @assetTopbarBorder;
5859
}
5960

6061
.asset-editor-gallery-tab {
62+
height: 3rem;
6163
background-color: @assetUnselected;
64+
color: @grey;
6265
padding: .7em 2em .85em;
6366
font-size: 1rem;
6467
font-weight: 600;
6568
cursor: pointer;
69+
border-color: @assetTopbarBorder;
70+
border-style: solid;
71+
border-width: 0 1px 1px 0;
6672
}
6773

6874
.asset-editor-gallery-tab.selected {
6975
background-color: transparent;
76+
border-bottom-color: @blocklySvgColor;
77+
color: @black;
7078
}
7179
.asset-editor-card-list {
7280
width: 100%;

theme/themes/pxt/globals/site.variables

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,10 @@
375375
/*-------------------
376376
Asset Editor
377377
-------------------*/
378-
@assetSidebarBorder: #dedede;
378+
@assetSidebarBorder: #c6c6c6;
379379
@assetSidebarButton: #f8f8f8;
380380
@assetSidebarButtonHover: #dedede;
381+
@assetTopbarBorder: #c6c6c6;
381382
@assetPreviewBackground: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10px' height='10px'%3E%3Crect x='0' y='0' width='10px' height='10px' fill='white'%3E%3C/rect%3E%3Crect x='0' y='0' width='5px' height='5px' fill='%23dedede'%3E%3C/rect%3E%3Crect x='5' y='5' width='5px' height='5px' fill='%23dedede'%3E%3C/rect%3E%3C/svg%3E");
382383
@assetUnselected: #e3ddd0;
383384
@assetTypeButton: @teal;

0 commit comments

Comments
 (0)