-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fantasy): add dropdown & link (#77)
* feat(fantasy): add dropdown & link
- Loading branch information
Showing
10 changed files
with
173 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import '../../button/fantasy'; | ||
import '../../link/fantasy'; | ||
import '../../popup/fantasy'; | ||
|
||
export default from '../dropdown'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import './link.css'; | ||
|
||
export default from '../link'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
@import '../../vars-fantasy.css'; | ||
|
||
.link { | ||
cursor: pointer; | ||
outline: none; | ||
font-family: var(--font); | ||
font-weight: var(--font-weight-normal); | ||
text-decoration: none; | ||
transition: color 200ms ease-out; | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, .1); | ||
|
||
&__text { | ||
border-bottom-style: solid; | ||
border-bottom-width: 1px; | ||
transition: border-color 200ms ease-out; | ||
} | ||
|
||
&__icon { | ||
display: inline-block; | ||
vertical-align: middle; | ||
margin-right: 5px; | ||
line-height: 0; | ||
} | ||
|
||
&_size_xs { | ||
font-size: var(--font-size-xs); | ||
line-height: var(--line-height-normal); | ||
} | ||
|
||
&_size_s { | ||
font-size: var(--font-size-s); | ||
line-height: var(--line-height-normal); | ||
} | ||
|
||
&_size_m { | ||
font-size: var(--font-size-m); | ||
line-height: var(--line-height-normal); | ||
} | ||
|
||
&_size_l { | ||
font-size: var(--font-size-xl); | ||
line-height: var(--line-height-condensed); | ||
} | ||
|
||
&_size_xl { | ||
font-size: var(--font-size-2xl); | ||
line-height: var(--line-height-condensed); | ||
} | ||
|
||
&_pseudo &__text { | ||
border-bottom-style: dotted; | ||
} | ||
|
||
&_disabled, | ||
&_checked { | ||
cursor: default; | ||
} | ||
|
||
&_disabled &__icon, &_checked &__icon { | ||
opacity: var(--opacity-disabled); | ||
} | ||
} | ||
|
||
.link_theme_alfa-on-color { | ||
color: var(--color-content-alfa-on-color); | ||
|
||
.link__text { | ||
border-color: rgba(255, 255, 255, .4); | ||
} | ||
|
||
&.link_hovered, | ||
&.link_focused { | ||
color: var(--color-content-accent-alfa-on-color); | ||
|
||
.link__text { | ||
border-color: rgba(255, 255, 255, 1); | ||
} | ||
} | ||
|
||
&.link_disabled { | ||
color: var(--color-content-minor-alfa-on-color); | ||
} | ||
} | ||
|
||
.link_theme_alfa-on-white { | ||
color: var(--color-content-alfa-on-white); | ||
|
||
.link__text { | ||
border-color: rgba(0, 0, 0, .4); | ||
} | ||
|
||
&.link_hovered, | ||
&.link_focused { | ||
color: var(--color-content-heavy-accent-alfa-on-white); | ||
|
||
.link__text { | ||
border-color: var(--color-accent-translucent); | ||
} | ||
} | ||
|
||
&.link_disabled { | ||
color: var(--color-content-minor-alfa-on-white); | ||
} | ||
} | ||
|
||
.link_theme_alfa-on-color, | ||
.link_theme_alfa-on-white { | ||
&.link_disabled, | ||
&.link_checked { | ||
.link__text { | ||
border-color: transparent; | ||
} | ||
} | ||
|
||
&.link_checked { | ||
color: var(--color-accent); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import './link.css'; | ||
|
||
export default from './link'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters