Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(lsg): add hover to property items
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Frick committed Dec 16, 2017
1 parent 0bc168d commit 2c1d6ee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lsg/patterns/property-items/boolean-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const StyledBooleanItem = styled.div`

const StyledLabelWrapper = styled.label`
display: block;
margin-bottom: ${getSpace(Size.XXL)}px;
margin-bottom: ${getSpace(Size.L)}px;
`;

const indicatorWidth = 42;
Expand Down
10 changes: 8 additions & 2 deletions src/lsg/patterns/property-items/enum-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ const StyledSelect = styled.select`
font-family: ${fonts().NORMAL_FONT};
color: ${colors.grey36.toString()};
font-size: 15px;
border-bottom: 1px solid ${colors.grey70.toString()};
border-bottom: 1px solid transparent;
padding-bottom: ${getSpace(Size.M)/2}px;
margin-bottom: ${getSpace(Size.XXL)}px;
margin-bottom: ${getSpace(Size.L)}px;
transition: all 0.2s;
&:hover {
color: ${colors.black.toString()};
border-color: ${colors.grey70.toString()};
}
&:focus {
outline: none;
Expand Down
11 changes: 8 additions & 3 deletions src/lsg/patterns/property-items/string-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,23 @@ const StyledInput = styled.input`
width: 100%;
text-overflow: ellipsis;
border: none;
border-bottom: 1px solid ${colors.grey70.toString()};
border-bottom: 1px solid transparent;
background: transparent;
font-family: ${fonts().NORMAL_FONT};
font-size: 15px;
padding-bottom: ${getSpace(Size.M)/2}px;
color: ${colors.grey36.toString()};
margin-bottom: ${getSpace(Size.XXL)}px;
margin-bottom: ${getSpace(Size.L)}px;
transition: all 0.2s;
::-webkit-input-placeholder {
color: ${colors.grey70.toString()};
}
&:hover {
color: ${colors.black.toString()};
border-color: ${colors.grey70.toString()};
}
&:focus {
outline: none;
Expand Down

0 comments on commit 2c1d6ee

Please sign in to comment.