HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="container">
<div class="row">
<div class="text-center box">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><span class="glyphicon glyphicon-off" aria-hidden="true"></span></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#"><span class="glyphicon glyphicon-leaf" aria-hidden="true"> </span>Earth <span class="sr-only">(current)</span></a></li>
<li><a href="#"><span class="glyphicon glyphicon-fire" aria-hidden="true"> </span>Fire</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-tint" aria-hidden="true"> </span>Water </a>
</li>
<li><a href="#"><span class="glyphicon glyphicon-random" aria-hidden="true"> </span>Wind</a></li>
<li><a href="#"><span class="glyphicon glyphicon-heart-empty" aria-hidden="true"> </span>Heart</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span></a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
</div>
<!-- Closes the navigation -->
<div class="row">
<div class="col-md-6 col-sm-6">
<div class="box">
<div class="row">
<div class="user-image">
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
</div>
<div class="col-md-12">
<hr>
<p><span class="glyphicon glyphicon-user" aria-hidden="true"></span> <strong>username:</strong> puppyface
<button class="edit mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">
Edit
</button>
</p>
<p><strong>Password:</strong> •••••••••
<button class="edit mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">
Edit
</button>
</p>
</div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-6">
<div class="box light_box">
<form>
<div class="form-group">
<label class="sr-only" for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
</div>
<div class="form-group">
<label class="sr-only" for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<div class="checkbox">
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox-2">
<input type="checkbox" id="checkbox-2" class="mdl-checkbox__input" />
<span class="mdl-checkbox__label">I have pretended to read the terms & conditions.</span>
</label>
</div>
<button type="" class="btn btn-default">Submit</button>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-sm-6 col-lg-6">
<div class="light_box search">
<form action="#">
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="sample1" />
<label class="mdl-textfield__label" for="sample1">Search...</label>
</div>
</form>
</div>
</div>
<div class="col-md-3 col-sm-3 col-lg-3">
<div class="box">
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">40%
<span class="sr-only">40% Complete (success)</span>
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">20%
<span class="sr-only">20% Complete</span>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-3 col-lg-3">
<div class="box">
<div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">60%
<span class="sr-only">60% Complete (warning)</span>
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">80%
<span class="sr-only">80% Complete (danger)</span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 col-sm-4">
<div class="light_box text-center">
<h1>31°</h1>
<!-- SVG Weather -->
<svg
version="1.1"
id="cloudFill"
class="climacon climacon_cloudFill"
viewBox="15 15 70 70">
<g class="climacon_iconWrap climacon_iconWrap-cloud">
<g class="climacon_componentWrap climacon_componentWrap_cloud">
<path
class="climacon_component climacon_component-stroke climacon_component-stroke_cloud"
d="M43.945,65.639c-8.835,0-15.998-7.162-15.998-15.998c0-8.836,7.163-15.998,15.998-15.998c6.004,0,11.229,3.312,13.965,8.203c0.664-0.113,1.338-0.205,2.033-0.205c6.627,0,11.998,5.373,11.998,12c0,6.625-5.371,11.998-11.998,11.998C57.168,65.639,47.143,65.639,43.945,65.639z"/>
<path
class="climacon_component climacon_component-fill climacon_component-fill_cloud"
fill="#FFFFFF"
d="M59.943,61.639c4.418,0,8-3.582,8-7.998c0-4.417-3.582-8-8-8c-1.601,0-3.082,0.481-4.334,1.291c-1.23-5.316-5.973-9.29-11.665-9.29c-6.626,0-11.998,5.372-11.998,11.999c0,6.626,5.372,11.998,11.998,11.998C47.562,61.639,56.924,61.639,59.943,61.639z"/>
</g>
</g>
</svg><!-- cloudFill -->
<div class="bottom">
<p>Saturday, September 19, 2015</p>
</div>
</div><!-- Closes light_box -->
<div class="light_box col-md-12 col-sm-12 col-xs-12 col-sm-12 col-lg-12 cal-container">
<div class="leftContainer col-md-hidden col-lg-4 hidden-xs hidden-sm hidden-md">
<p class="weekday">Wednesday</p>
<p class="date">16</p>
<p class="monad">September</p>
</div>
<div class="rightContainer col-md-12 col-sm-12 col-xs-12 col-lg-12">
<table class="calendar">
<h3 class="year">2015</h3>
<tr>
<td class="weekname">S</td>
<td class="weekname">M</td>
<td class="weekname">T</td>
<td class="weekname">W</td>
<td class="weekname">T</td>
<td class="weekname">F</td>
<td class="weekname">S</td>
</tr>
<tr>
<td class="greyMarked">30</td>
<td class="greyMarked">31</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
</tr>
<tr>
<td>13</td>
<td>14</td>
<td>15</td>
<td class="currentDate">16</td>
<td>17</td>
<td>18</td>
<td>19</td>
</tr>
<tr>
<td>20</td>
<td>21</td>
<td>22</td>
<td>23</td>
<td>24</td>
<td>25</td>
<td>26</td>
</tr>
<tr>
<td>27</td>
<td>28</td>
<td>29</td>
<td>30</td>
<td class="greyMarked">1</td>
<td class="greyMarked">2</td>
<td class="greyMarked">3</td>
</tr>
</table>
</div>
</div><!--Closes Calendar-->
<p></p>
</div>
<div class="col-md-8 col-sm-8">
<div class="light_box">
<div class="cxiv-container">
<!-- Player Window -->
<iframe src="https://player.vimeo.com/video/69107547" width="75%" height="430" allowfullscreen="" frameborder="0"></iframe>
</div>
</div>
</div>
</div>
<!-- Closes the row -->
<div class="row">
<div class="col-md-6 col-sm-6 col-lg-6">
<div class="box">
<div id="clock"></div>
<div class="clock">
<div class="hour"></div>
<div class="minute"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-6 col-lg-6">
<div class="box">
<div class="col-md-8 col-sm-8 col-lg-8">
<div class="demo-card-event mdl-card mdl-shadow--2dp">
<div class="mdl-card__title mdl-card--expand">
<h4>
Featured event:<br>
May 24, 2016<br>
7-11pm
</h4>
</div>
<div class="mdl-card__actions mdl-card--border">
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
Add to Calendar
</a>
<button id="#load" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect">
<i class="material-icons">event</i>
</button>
</div>
</div>
</div>
<div id="notify" class="col-md-4 col-sm-4 col-lg-4">
<p id="spinny"class="mdl-spinner mdl-js-spinner mdl-spinner--single-color"></p>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="light_box music">
<div class="song_info ">
<p class="song">A Sky Full of Stars</p>
<p class="album">Ghost Stories</p>
<p class="artist">Coldplay</p>
</div>
<div class="controls col-xs-8 col-md-8 col-sm-8 col-lg-8">
<span class="glyphicon glyphicon-step-backward" aria-hidden="true"></span>
<span class="glyphicon glyphicon-step-forward" aria-hidden="true"></span>
<span class="glyphicon glyphicon-pause" aria-hidden="true"></span>
<div class="volume">
<div class="volume-control">
<span class="glyphicon glyphicon-volume-up" aria-hidden="true"></span>
<input class="mdl-slider mdl-js-slider" type="range"
min="0" max="100" value="25" tabindex="0"/>
</div>
</div>
</div>
<div class="album_image col-xs-4 col-md-4 col-sm-4 col-lg-4">
<a class="glyphicon glyphicon-play center-block" aria-hidden="true"></a>
<img class="img-responsive" src="http://media.creativebloq.futurecdn.net/sites/creativebloq.com/files/images/2014/02/coldplay2.jpg" />
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
$babyblue: #97d0e1;
$blue: #00659a;
$light: rgba(0,0,0,.1);
$medium: rgba(0,0,0,.5);
$dark: rgba(0,0,0,.8);
$bright: rgba(255,255,255,.9);
$midbright: rgba(255,255,255,.5);
$lowbright: rgba(255,255,255,.15);
$gold: #fad669;
$red: #a73632;
@mixin transition($args...) {
-webkit-transition: $args;
-moz-transition: $args;
-ms-transition: $args;
-o-transition: $args;
transition: $args;
}
@mixin rotate($val) {
-webkit-transform: rotate($val);
-moz-transform: rotate($val);
-ms-transform: rotate($val);
-o-transform: rotate($val);
transform: rotate($val);
}
.clearfix {
&:before,
&:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
/* Mobile Nav */
.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover {
background-color: transparent;
}
.navbar-default {
.navbar-toggle {
border: none;
}
}
html, body {
min-height: 100%;
font-family: 'Open Sans', sans-serif;
height: auto;
}
body {
background: #92c7d6;
background-image: -webkit-radial-gradient(top, circle cover, #97d0e1, #427388 80%);
background-image: -moz-radial-gradient(top, circle cover, #97d0e1, #427388 80%);
background-image: -o-radial-gradient(top, circle cover, #97d0e1, #427388 80%);
background-image: radial-gradient(top, circle cover, #97d0e1, #427388 80%);
a, button {
color: $babyblue;
@include transition(all .2s ease);
}
}
.box {
background: $dark;
color: white;
padding: 2rem;
margin: 2rem 0;
box-shadow: 0 2px 5px rgba(0,0,0,.3), 3px 5px 10px rgba(0,0,0,.15);
clear: both;
}
.navbar {
margin-bottom: 0;
}
.navbar-default {
background-color: transparent;
border: none;
.navbar-nav {
&>li>a {
color: white;
&:hover, &:focus {
color: $babyblue;
}
}
.active>a, .open>a {
background-color: transparent;
background: transparent;
color: $babyblue;
&:hover, &:focus {
color: $babyblue;
background-color: transparent;
}
}
}
}
.user-image {
width: 120px;
height: 120px;
background: url(http://www.grca.org/data1/images/fade_30.jpg) center center no-repeat;
border-radius: 50%;
background-size: cover;
margin: 0 auto;
border: $babyblue 3px solid;
@include transition(all .2s ease);
position: relative;
span {
display: none;
position: absolute;
color: black;
left: 50%;
top: 50%;
margin: -20px 0 0 -25px;
width: 100%;
font-size: 5rem;
text-shadow: 0 0 5px #fff;
}
&:hover {
-webkit-filter: grayscale(.8);
filter: grayscale(.8);
span {
display: block;
}
}
}
.form-control {
border: none;
border-bottom: 1px solid $babyblue;
border-radius: 0;
background-color: transparent;
padding: 5px 0 5px 0;
width: 80%;
color: white;
font-size: 30px;
line-height: 36px;
height: auto;
box-shadow: none;
&:focus {
box-shadow: none;
}
&::-webkit-input-placeholder {
color: $midbright;
}
&:-moz-placeholder { /* Firefox 18- */
color: $midbright;
}
&::-moz-placeholder { /* Firefox 19+ */
color: $midbright;
}
&:-ms-input-placeholder {
color: $midbright;
}
label {
font-weight: normal;
}
input[type=checkbox] {
width: 25px;
height: 25px;
-webkit-appearance: none;
border: 1px solid white;
margin: 0 38px 0 0;
left: 0;
cursor: pointer;
}
}
.btn-default {
background-color: transparent;
border-radius: 0;
padding: 1rem 2rem;
border: 1px solid $babyblue;
color: $babyblue;
&:focus {
background-color: transparent;
box-shadow: none;
}
&:hover {
background-color: $babyblue;
border-color: $babyblue;
color: white;
}
}
p .edit {
display: inline-block;
float: right;
clear: both;
}
.light_box {
background: $light;
color: white;
margin: 2rem 0;
h1 {
display: inline-block;
margin: 0 -6px 0 10%;
position: relative;
top: 10px;
font-size: 45px;
}
svg {
display: inline;
}
p {
margin: 0;
}
.bottom {
background: rgba(0,0,0,.5);
padding: 1rem;
}
}
.medium_box {
background: $medium;
}
.search {
padding: 1rem 2rem;
.mdl-textfield__label:after {
background-color: $babyblue;
bottom: 15px;
}
}
.progress {
border-radius: 0;
-webkit-box-shadow: 0;
box-shadow: 0;
background-color: $lowbright;
&:last-child {
margin: 0;
}
.progress-bar-success {
background-color: $blue;
color: $midbright;
}
.progress-bar-info {
background-color: $babyblue;
color: $medium;
}
.progress-bar-warning {
background-color: adjust-hue($babyblue, 90%);
color: $medium;
}
.progress-bar-danger {
background-color: $red;
color: $midbright;
}
}
/********* Weather **********/
/* VARIABLES */
$baseAnimationDuration: 18s;
$size: 100px;
$svgSize: 100px;
//vars specific for curves
$animationStep: 2;
$increase: pi() / 100;
$fontColor: white;
$strokeColor: white;
$fillColor: $babyblue;
/* Applies a stroke to the icons. Can use percentage for responsive */
$strokeStrokeWidth: 0%;
$strokeStrokeColor: black;
$fillStrokeWidth: 0%;
$fillStrokeColor: black;
.climacon_component-stroke {
fill: $strokeColor;
stroke-width: $strokeStrokeWidth;
stroke: $strokeStrokeColor;
}
.climacon_component-fill {
fill: $fillColor;
stroke-width: $fillStrokeWidth;
stroke: $fillStrokeColor;
}
/* SVG GLOBAL */
svg {
display: inline-block;
width: $size;
height: $size;
shape-rendering: geometricPrecision;
}
g, path, circle, rect {
animation-iteration-count: infinite;
animation-timing-function: linear;
transform-origin: 50% 50%;
animation-duration: $baseAnimationDuration;
animation-direction: normal;
}
/********** Video Player **********/
.cxiv-container {
padding: 15px;
margin-bottom: 10px;
overflow: auto;
display: block;
}
.cxiv-container iframe {
width: 100%;
margin-right: 10px;
float: left;
}
.cxiv-menu a {
height: 39px;
padding: 10px;
display: block;
overflow: hidden;
background-color: #ff9933; /* Orange */
color: #235F7F; /* Link Color */
text-decoration: none;
font-size: 1em;
}
.cxiv-menu a:hover {
background-color: #6699CC; /* Hover Blue */
color: #000000;
}
/********** Calendar **********/
.cal-container {
max-height: 360px;
margin: 0 auto;
overflow: hidden;
/*-webkit-box-shadow: 4px 3px 16px 0px rgba(50, 50, 50, 0.40);
-moz-box-shadow: 4px 3px 16px 0px rgba(50, 50, 50, 0.40);
box-shadow: 4px 3px 16px 0px rgba(50, 50, 50, 0.40);*/
}
.leftContainer {
display: none;
background: #3498db;
height: 100%;
color: white;
text-align: center;
float: left;
.weekday {
font-size: 30px;
}
.date {
position: relative;
top:-70px;
font-size: 110px;
}
.monad{
top:-150px;
font-size:30px;
position:relative;
}
}
.rightContainer {
height: 100%;
color: white;
text-align:center;
position:relative;
padding-bottom: 5rem;
.calendar {
text-align: center;
margin: auto;
position: relative;
top: 15px;
font-size: 18px;
@media (min-width: 768px) and (max-width: 990px) {
font-size: 14px;
}
td {
padding: 4px;
width: 23px;
height: 23px;
&:hover{
border-radius:50%;
background: $babyblue;
color:white;
cursor: pointer;
}
&.greyMarked {
color: $light;
&:hover {
background: transparent;
cursor: default;
}
}
&.currentDate {
background: $dark;
border-radius: 50%;
color: white;
}
&.weekname {
color: $medium;
&:hover {
background: transparent;
cursor: default;
}
}
}
}
.year{
position:relative;
top:15px;
}
}
/******** Clocky Clock ********/
#clock {
color: $midbright;
font-size: 1.5rem;
position: absolute;
}
.clock {
border: 5px solid $bright;
border-radius: 100%;
display: block;
height: 250px;
width: 250px;
margin: 0 auto;
position: relative;
.hour, .minute {
-webkit-transform-origin: 50% 100%;
-moz-transform-origin: 50% 100%;
-o-transform-origin: 50% 100%;
-ms-transform-origin: 50% 100%;
transform-origin: 50% 100%;
position: absolute;
left: 50%;
top: 50%;
background: #fff;
height: 0;
width: 0;
}
.hour {
margin: -60px -2px 0;
padding: 60px 2px 0;
}
.minute {
margin: -105px -2px 0;
padding: 105px 2px 0;
}
}
#notify {
p {
font-size: .8rem;
.glyphicon-ok {
color: $blue;
}
}
}
/************** Music Player *******************/
.music {
padding: 1rem;
position: relative;
.song_info {
position: absolute;
bottom: 2rem;
left: 2rem;
.song, .album, .artist {
font-size: 1rem;
line-height: 1.5rem;
}
.song {
@media (min-width: 500px) {
font-size: 1.5rem;
}
}
.album {
color: $midbright;
@media (min-width: 500px) {
font-size: 1rem;
}
}
.artist {
@media (min-width: 500px) {
font-size: 1.25rem;
}
color: $medium;
}
}
.controls {
position: relative;
.volume {
@include rotate(-90deg);
transform-origin: 73% 40%;
position: absolute;
right: 0;
top: 0;
position: absolute;
@media (min-width: 780px) {
right: -5%;
transform-origin: 98% 89%;
}
@media (min-width: 990px) {
transform-origin: 120% 152%;
}
@media (min-width: 1200px) {
transform-origin: 139% 231%;
}
.volume-control {
width: 100%;
max-width: 120px;
height: 20px;
@media (min-width: 480px) {
max-width: 150px;
height: 35px;
}
@media (min-width: 780px) {
max-width: 400px;
height: 55px;
width: 140%;
}
@media (min-width: 990px) {
width: 180%;
}
@media (min-width: 1200px) {
width: 228%;
}
.glyphicon-volume-up {
@include rotate(90deg);
left: 5px;
top: 2px;
position: absolute;
color: $babyblue;
}
}
}
}
.album_image {
padding-right: 0;
a {
color: $dark;
font-size: 56px;
position: absolute;
opacity: .6;
left: 50%;
top: 50%;
transform: translate(-40%, -50%);
&:hover {
text-decoration: none;
opacity: .9;
}
}
}
.mdl-slider__background-lower {
background: $babyblue;
}
input[type=range]::-webkit-slider-thumb {
background: $babyblue;
}
}
/*********** Google MDL Overrides **************/
.mdl-button {
&.edit {
border-radius: 0;
}
}
.mdl-checkbox__label {
font-size: 12px;
}
.mdl-button--accent.mdl-button--accent.mdl-button--raised, .mdl-button--accent.mdl-button--accent.mdl-button--fab {
background-color: $babyblue;
}
.mdl-card {
background-color: transparent;
width: auto;
.mdl-card__title {
color: $bright;
padding: 0;
h4 {
margin: 0 0 16px;
}
}
.mdl-button.mdl-button--colored {
color: $bright;
}
.mdl-card__actions.mdl-card--border {
border-top: 1px solid rgba(255,255,255,.2);
}
.mdl-card__actions {
padding: 8px 0;
}
i {
float: right;
}
}
// Clock!
function clock() {
var t = moment(),
a = t.minutes() * 6,
o = t.hours() % 12 / 12 * 360 + (a / 12);
$(".hour").css("transform", "rotate(" + o + "deg)");
$(".minute").css("transform", "rotate(" + a + "deg)");
}
function refreshClock() {
clock(), setTimeout(refreshClock, 1000)
}
refreshClock();
// Actual Clock Numbers
function update() {
$('#clock').html(moment().format('h:mm A'));
}
setInterval(update, 1000);
//Spinning Loader
$( "button" ).click(function() {
$( "#notify" ).show('this'),
$( "#spinny" ).toggleClass( "is-active" ).delay(2000).hide('this'),
setTimeout(function() {
$( "#notify" ).append( '<p>Event Added <span class="glyphicon glyphicon-ok" aria-hidden="true"></span></p>' ).delay(1800).hide('this');
}, 2000);
});
$('#ex1').slider({
formatter: function(value) {
return 'Current value: ' + value;
}
});
Also see: Tab Triggers