Skip to content

Commit

Permalink
Iterating style to include border
Browse files Browse the repository at this point in the history
  • Loading branch information
Tammie Lister committed Dec 9, 2019
1 parent a464f8e commit 03d8eb5
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@

// Sub-menus Flyout
& > li > ul {
background: #fafafa;
-webkit-box-shadow: -2px 4px 4px -1px rgba(97, 97, 97, 0.153);
-moz-box-shadow: -2px 4px 4px -1px rgba(97, 97, 97, 0.153);
border-radius: 4px;
box-shadow: -2px 4px 4px -1px rgba(97, 97, 97, 0.153);
background: #fff;
-webkit-box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1);
-moz-box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1);
border-radius: 3px;
box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1);
border: 1px solid #e2e4e7;
margin: 0;
position: absolute;
left: 0;
Expand All @@ -88,21 +89,32 @@
}
}

&::after {
&::after,
&::before {
bottom: 100%;
left: 50%;
border: solid transparent;
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #fafafa;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}

&::after {
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #fff;
border-width: 10px;
margin-left: -10px;
}

&::before {
border-color: rgba(226, 228, 231, 0);
border-bottom-color: #e2e4e7;
border-width: 11px;
margin-left: -11px;
}

ul {
width: 100%;
}
Expand Down Expand Up @@ -157,7 +169,7 @@

.is-style-dark > ul > li > ul {
background: #333;
border-radius: 4px;
border: 1px solid #111;

a {
text-decoration: none;
Expand All @@ -170,7 +182,12 @@
}

&::after {
border-color: rgba(24, 24, 24, 0);
border-color: rgba(51, 51, 51, 0);
border-bottom-color: #333;
}

&::before {
border-color: rgba(17, 17, 17, 0);
border-bottom-color: #111;
}
}

0 comments on commit 03d8eb5

Please sign in to comment.