332 lines
10 KiB
CSS
332 lines
10 KiB
CSS
/*
|
||
* littlelink V1
|
||
* https://littlelink.com
|
||
* Free to use under the MIT license.
|
||
* http://www.opensource.org/licenses/mit-license.php
|
||
* 12/21/2019
|
||
*
|
||
* Built using:
|
||
*
|
||
* Skeleton V2.0.4
|
||
* Copyright 2014, Dave Gamache
|
||
* www.getskeleton.com
|
||
* Free to use under the MIT license.
|
||
* http://www.opensource.org/licenses/mit-license.php
|
||
* 12/29/2014
|
||
*/
|
||
|
||
/* Table of contents
|
||
––––––––––––––––––––––––––––––––––––––––––––––––––
|
||
- Grid
|
||
- Base Styles
|
||
- Typography
|
||
- Links
|
||
- Code
|
||
- Spacing
|
||
- Utilities
|
||
*
|
||
* You'll find the button css in css/brands.css.
|
||
*
|
||
*/
|
||
|
||
/* Grid
|
||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||
.container {
|
||
position: relative;
|
||
width: 100%;
|
||
max-width: 600px;
|
||
text-align: center;
|
||
margin: 0 auto;
|
||
padding: 0 20px;
|
||
box-sizing: border-box;
|
||
}
|
||
.container-left {
|
||
position: relative;
|
||
width: 100%;
|
||
max-width: 600px;
|
||
text-align: left;
|
||
margin: 0 auto;
|
||
padding: 0 20px;
|
||
box-sizing: border-box;
|
||
}
|
||
.column {
|
||
position: center;
|
||
width: 100%;
|
||
float: center;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* For devices larger than 400px */
|
||
@media (min-width: 400px) {
|
||
.container {
|
||
width: 85%;
|
||
padding: 0;
|
||
}
|
||
}
|
||
|
||
/* For devices larger than 550px */
|
||
@media (min-width: 550px) {
|
||
.container {
|
||
width: 80%;
|
||
}
|
||
.column,
|
||
.columns {
|
||
margin-left: 0;
|
||
}
|
||
.column:first-child,
|
||
.columns:first-child {
|
||
margin-left: 0;
|
||
}
|
||
}
|
||
|
||
/* Base Styles
|
||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||
/* NOTE
|
||
html is set to 62.5% so that all the REM measurements throughout Skeleton
|
||
are based on 10px sizing. So basically 1.5rem = 15px :) */
|
||
|
||
html {
|
||
font-size: 100%;
|
||
color-scheme: light dark;
|
||
}
|
||
body {
|
||
font-size: 18px;
|
||
line-height: 24px;
|
||
font-weight: 400;
|
||
font-family: "Open Sans", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial,
|
||
sans-serif;
|
||
}
|
||
|
||
/* Typography
|
||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||
h1 {
|
||
margin-top: 0;
|
||
margin-bottom: 16px;
|
||
font-weight: 800;
|
||
}
|
||
h1 {
|
||
font-size: 24px;
|
||
line-height: 64px;
|
||
letter-spacing: 0;
|
||
}
|
||
|
||
/* Larger than phablet */
|
||
@media (min-width: 550px) {
|
||
h1 {
|
||
font-size: 48px;
|
||
line-height: 96px;
|
||
}
|
||
}
|
||
|
||
p {
|
||
margin-top: 0;
|
||
}
|
||
|
||
/* Links
|
||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||
a {
|
||
color: #2457F5;
|
||
}
|
||
a:hover {
|
||
color: #083BDA;
|
||
}
|
||
a:focus {
|
||
outline: #7AB8FF solid 2px;
|
||
border-radius: 2px;
|
||
}
|
||
|
||
/* Link Color Dark Theme */
|
||
@media (prefers-color-scheme: dark) {
|
||
a {
|
||
color: #4899F7;
|
||
}
|
||
a:hover {
|
||
color: #7AB8FF;
|
||
}
|
||
a:focus {
|
||
outline: #7AB8FF solid 2px;
|
||
border-radius: 2px;
|
||
}
|
||
}
|
||
|
||
/* Code
|
||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||
code {
|
||
padding: 0.2rem 0.5rem;
|
||
margin: 0 0.2rem;
|
||
font-size: 90%;
|
||
white-space: nowrap;
|
||
background: #f1f1f1;
|
||
border: 1px solid #e1e1e1;
|
||
border-radius: 4px;
|
||
}
|
||
pre > code {
|
||
display: block;
|
||
padding: 1rem 1.5rem;
|
||
white-space: pre;
|
||
}
|
||
|
||
/* Spacing
|
||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||
button,
|
||
.button {
|
||
margin-bottom: 1rem;
|
||
}
|
||
input,
|
||
textarea,
|
||
select,
|
||
fieldset {
|
||
margin-bottom: 1.5rem;
|
||
}
|
||
pre,
|
||
blockquote,
|
||
dl,
|
||
figure,
|
||
p,
|
||
ol {
|
||
margin-bottom: 2.5rem;
|
||
}
|
||
|
||
/* Utilities
|
||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||
.u-full-width {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
.u-max-full-width {
|
||
max-width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
.u-pull-right {
|
||
float: right;
|
||
}
|
||
.u-pull-left {
|
||
float: left;
|
||
}
|
||
|
||
/* Misc
|
||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||
hr {
|
||
margin-top: 3rem;
|
||
margin-bottom: 3.5rem;
|
||
border-width: 0;
|
||
border-top: 1px solid #e1e1e1;
|
||
}
|
||
/* Radius values:
|
||
|
||
10%-40%: Squircles
|
||
50% (default): True circle
|
||
*/
|
||
.avatar {
|
||
width: 128px;
|
||
height: 128px;
|
||
object-fit: cover;
|
||
background-position: center;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
/* open-sans-regular - vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic */
|
||
@font-face {
|
||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||
font-family: 'Open Sans';
|
||
font-style: normal;
|
||
font-weight: 400;
|
||
src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot'); /* IE9 Compat Modes */
|
||
src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2') format('woff2'), /* Super Modern Browsers */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff') format('woff'), /* Modern Browsers */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.ttf') format('truetype'), /* Safari, Android, iOS */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
|
||
}
|
||
/* open-sans-600 - vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic */
|
||
@font-face {
|
||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||
font-family: 'Open Sans';
|
||
font-style: normal;
|
||
font-weight: 600;
|
||
src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.eot'); /* IE9 Compat Modes */
|
||
src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff2') format('woff2'), /* Super Modern Browsers */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff') format('woff'), /* Modern Browsers */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.ttf') format('truetype'), /* Safari, Android, iOS */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.svg#OpenSans') format('svg'); /* Legacy iOS */
|
||
}
|
||
/* open-sans-700 - vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic */
|
||
@font-face {
|
||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||
font-family: 'Open Sans';
|
||
font-style: normal;
|
||
font-weight: 700;
|
||
src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.eot'); /* IE9 Compat Modes */
|
||
src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2') format('woff2'), /* Super Modern Browsers */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff') format('woff'), /* Modern Browsers */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.ttf') format('truetype'), /* Safari, Android, iOS */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.svg#OpenSans') format('svg'); /* Legacy iOS */
|
||
}
|
||
/* open-sans-800 - vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic */
|
||
@font-face {
|
||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||
font-family: 'Open Sans';
|
||
font-style: normal;
|
||
font-weight: 800;
|
||
src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.eot'); /* IE9 Compat Modes */
|
||
src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff2') format('woff2'), /* Super Modern Browsers */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff') format('woff'), /* Modern Browsers */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.ttf') format('truetype'), /* Safari, Android, iOS */
|
||
url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.svg#OpenSans') format('svg'); /* Legacy iOS */
|
||
}
|
||
|
||
#darkmode-toggle {
|
||
display: none;
|
||
}
|
||
|
||
label {
|
||
width:70px;
|
||
height:35px;
|
||
position: relative;
|
||
display: block;
|
||
top: -20px;
|
||
left: 44%;
|
||
/* left: 265px; */
|
||
text-align: center;
|
||
/* left: 44%; */
|
||
background: #ebebeb;
|
||
border-radius: 20px;
|
||
box-shadow: inset 0px 0px 10px rgba(0,0,0,0.4), inset 0px 0px 10px rgba(255,255,255,0.4);
|
||
cursor: pointer;
|
||
}
|
||
|
||
label:after {
|
||
content: "";
|
||
width:28px;
|
||
height: 28px;
|
||
position: absolute;
|
||
top:4px;
|
||
left:2px;
|
||
background: linear-gradient(180deg,#ffcc89,#d8860b);
|
||
border-radius: 60px;
|
||
box-shadow: 0px 5px 10px rgba(0,0,0,0.2);
|
||
}
|
||
input {
|
||
width: 0;
|
||
height: 0;
|
||
visibility: hidden;
|
||
}
|
||
|
||
input:checked + label {
|
||
background: #242424;
|
||
}
|
||
input:checked + label:after {
|
||
left:68px;
|
||
transform: translateX(-100%);
|
||
background: linear-gradient(180deg,#777,#3a3a3a);
|
||
}
|
||
label, label:after {
|
||
transition: 0.3s
|
||
}
|
||
|
||
label:active:after{
|
||
width: 40px;
|
||
} |