Skip to content

Commit

Permalink
update docs, adjust debug highlight outline offset
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeBoYin committed Jun 1, 2021
1 parent a20aba9 commit 3733fa1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Vue Layout System lets you intuitively arrange your components. Simply drop your

With Vue Layout System developers are empowered to

- Create various types of layout without writing CSS
- Arrange contents in a intuitive and predictable way
- Control space between contents precisely with one consistent spacing system
- Create various types of layout with much shorter developing time
- Arrange contents faster in a intuitive and predictable way
- Control space between contents precisely with system-wide consistency

![](https://leeboyin.github.io/vue-layout-system/layout_highlight.gif)

Expand Down
6 changes: 3 additions & 3 deletions docs/src/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Simply drop your contents into slots, configure options with props, Vue Layout s

With Vue Layout System developers are empowered to

- Create various types of layout without writing CSS
- Arrange contents in a intuitive and predictable way
- Control space between contents precisely with one consistent spacing system
- Create various types of layout with much shorter developing time
- Arrange contents faster in a intuitive and predictable way
- Control space between contents precisely with system-wide consistency

## Installation

Expand Down
7 changes: 5 additions & 2 deletions src/scss/_layoutMixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

@mixin debug-highlight($name, $child-selectors: (' > *')) {
$debug-color: map-get($layout-debug-color-map, $name);
$outline-width: 2px;

.layout-u-debug & {
background-color: #{ transparentize($debug-color, 0.92) };
Expand All @@ -24,7 +25,8 @@
transparent 10px
),
rgba(255, 255, 255, 0.5);
outline: 2px solid #{ transparentize($debug-color, 0.4) };
outline: $outline-width solid #{ transparentize($debug-color, 0.4) };
outline-offset: -$outline-width;

// show component name on hover
&:before {
Expand All @@ -49,7 +51,8 @@
@each $child-selector in $child-selectors {
&.layout--debug#{ & }#{ $child-selector }:not(:empty) {
background-color: #{ mix($debug-color, white, 20%) };
outline: 2px dashed #{ transparentize($debug-color, 0.4) };
outline: $outline-width dashed #{ transparentize($debug-color, 0.4) };
outline-offset: -$outline-width;
}
}
}

0 comments on commit 3733fa1

Please sign in to comment.