forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request scala#30 from pikinier20/scaladoc/concise-view
Scaladoc/concise view
- Loading branch information
Showing
13 changed files
with
219 additions
and
54 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
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
53 changes: 53 additions & 0 deletions
53
scaladoc/resources/dotty_res/styles/theme/components/switch.css
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,53 @@ | ||
.switch { | ||
position: relative; | ||
display: inline-block; | ||
width: calc(4 * var(--base-spacing)); | ||
height: calc(calc(2 * var(--base-spacing)) + 2px); | ||
margin: var(--base-spacing); | ||
} | ||
|
||
.switch input { | ||
opacity: 0; | ||
width: 0; | ||
height: 0; | ||
} | ||
|
||
.slider { | ||
position: absolute; | ||
cursor: pointer; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background-color: var(--switch-background-default); | ||
-webkit-transition: .4s; | ||
transition: .4s; | ||
border-radius: calc(calc(4 * var(--base-spacing)) + 2px); | ||
} | ||
|
||
.slider:before { | ||
position: absolute; | ||
content: ""; | ||
height: calc(2 * var(--base-spacing)); | ||
width: calc(2 * var(--base-spacing)); | ||
left: 1px; | ||
bottom: 1px; | ||
background-color: var(--switch-button); | ||
-webkit-transition: .4s; | ||
transition: .4s; | ||
border-radius: 50%; | ||
} | ||
|
||
input:checked + .slider { | ||
background-color: var(--switch-background-selected); | ||
} | ||
|
||
input:focus + .slider { | ||
box-shadow: 0 0 1px var(--switch-background-selected); | ||
} | ||
|
||
input:checked + .slider:before { | ||
-webkit-transform: translateX(calc(calc(2 * var(--base-spacing)) - 2px)); | ||
-ms-transform: translateX(calc(calc(2 * var(--base-spacing)) - 2px)); | ||
transform: translateX(calc(calc(2 * var(--base-spacing)) - 2px)); | ||
} |
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
Oops, something went wrong.