-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for svelte 2 (#205)
* feat: add support for svelte 2 * style(eslint): fix eslint errors * style(eslint): fix eslint errors * fix: add svelte 2 support * build: regenerate package-lock.json * build: regenerate package-lock.json * style: fix eslint errors
- Loading branch information
1 parent
51f9f53
commit 5330b2a
Showing
14 changed files
with
5,202 additions
and
12,472 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,5 +58,6 @@ typings/ | |
.env | ||
|
||
**/dist/ | ||
!example/dist/ | ||
|
||
.idea/ |
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,140 @@ | ||
main { | ||
margin: 0; | ||
padding: 4em 0 0; | ||
font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; | ||
color: #666; | ||
text-align: center; | ||
} | ||
a { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
p a { | ||
color: #42b983; | ||
font-weight: 600; | ||
} | ||
#logo { | ||
display: block; | ||
width: 120px; | ||
height: 120px; | ||
margin: 20px auto 40px; | ||
padding: 20px; | ||
position: relative; | ||
border-radius: 50%; | ||
background-color: #35495e; | ||
color: #41b883; | ||
cursor: pointer; | ||
user-select: none; | ||
transition: all .3s; | ||
} | ||
#logo:hover { | ||
margin: 10px auto 30px; | ||
padding: 30px; | ||
background-color: #41b883; | ||
color: #35495e; | ||
} | ||
#logo .fa-icon { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
h1 { | ||
margin-bottom: 1em; | ||
font-family: Dosis, "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; | ||
} | ||
h1, h2 { | ||
color: #2c3e50; | ||
font-weight: 300; | ||
} | ||
h2 { | ||
margin-top: 3em; | ||
font-size: 1.2em; | ||
} | ||
.desc { | ||
margin-bottom: 4em; | ||
color: #7f8c8d; | ||
} | ||
figure .fa-icon { | ||
display: block; | ||
} | ||
p small { | ||
font-size: 0.8em; | ||
color: #7f8c8d; | ||
} | ||
pre { | ||
display: inline-block; | ||
margin: 0; | ||
padding: 0.8em; | ||
background-color: #f9f9f9; | ||
box-shadow: 0 1px 2px rgba(0,0,0,0.125); | ||
text-align: left; | ||
line-height: 1.1; | ||
color: #2973b7; | ||
} | ||
pre, code { | ||
font-family: "Roboto Mono", Monaco, courier, monospace; | ||
} | ||
pre code { | ||
font-size: 0.8em; | ||
} | ||
.attr { | ||
color: #e96900; | ||
} | ||
.val { | ||
color: #42b983; | ||
} | ||
footer { | ||
margin: 5em 0 3em; | ||
font-size: 0.5em; | ||
vertical-align: middle; | ||
} | ||
footer a { | ||
display: inline-block; | ||
margin: 0 5px; | ||
padding: 3px 0 6px; | ||
color: #7f8c8d; | ||
font-size: 2em; | ||
text-decoration: none; | ||
} | ||
footer a:hover { | ||
padding-bottom: 3px; | ||
border-bottom: 3px solid #42b983; | ||
} | ||
.alert { | ||
color: #c33; | ||
opacity: .8; | ||
} | ||
@media (max-width: 640px) { | ||
body { | ||
padding-top: 0; | ||
text-align: left; | ||
} | ||
#logo { | ||
margin: 0 auto; | ||
transform: scale(.6); | ||
} | ||
#logo:hover { | ||
margin: -10px auto; | ||
} | ||
h1, | ||
p { | ||
padding: 0 25px; | ||
} | ||
h1 { | ||
border-left: 5px solid #2c3e50; | ||
} | ||
h2 { | ||
padding-left: 20px; | ||
border-left: 5px solid rgba(0, 0, 0, 0.1); | ||
} | ||
figure { | ||
margin: 1em 0; | ||
} | ||
pre { | ||
display: block; | ||
box-shadow: none; | ||
overflow-x: auto; | ||
font-size: 0.9em; | ||
} | ||
} |
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,16 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset='utf8'> | ||
<meta name='viewport' content='width=device-width'> | ||
|
||
<title>svelte-awesome</title> | ||
|
||
<link rel='stylesheet' href='global.css'> | ||
<link rel='stylesheet' href='bundle.css'> | ||
</head> | ||
|
||
<body> | ||
<script src='bundle.js'></script> | ||
</body> | ||
</html> |
Oops, something went wrong.