Linting and minor changes
This commit is contained in:
@ -30,19 +30,7 @@
|
||||
captions: {
|
||||
defaultActive: true,
|
||||
},
|
||||
controls: [
|
||||
'play-large',
|
||||
'play',
|
||||
'progress',
|
||||
'current-time',
|
||||
'mute',
|
||||
'volume',
|
||||
'captions',
|
||||
'settings',
|
||||
'fullscreen',
|
||||
'pip',
|
||||
'airplay',
|
||||
],
|
||||
controls: ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'fullscreen', 'pip', 'airplay'],
|
||||
});
|
||||
|
||||
// Expose for testing
|
||||
@ -67,13 +55,7 @@
|
||||
newSource(type);
|
||||
|
||||
if (historySupport) {
|
||||
history.pushState(
|
||||
{
|
||||
type: type,
|
||||
},
|
||||
'',
|
||||
'#' + type
|
||||
);
|
||||
history.pushState({ type: type }, '', '#' + type);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -51,16 +51,14 @@
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: @arrow-size;
|
||||
height: @arrow-size;
|
||||
left: 1px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
right: 100%;
|
||||
top: 50%;
|
||||
margin-top: -(@arrow-size / 2);
|
||||
transform: translateY(-50%);
|
||||
|
||||
background: inherit;
|
||||
border: inherit;
|
||||
border-width: 1px 0 0 1px;
|
||||
transform: rotate(-45deg) translate(-50%, -50%);
|
||||
border: @arrow-size solid transparent;
|
||||
border-right-color: #fff;
|
||||
border-left-width: 0;
|
||||
}
|
||||
}
|
||||
|
@ -3,22 +3,18 @@
|
||||
// ==========================================================================
|
||||
|
||||
header {
|
||||
padding: @spacing-base;
|
||||
padding-bottom: @spacing-base;
|
||||
text-align: center;
|
||||
|
||||
p {
|
||||
.font-size(@font-size-large);
|
||||
margin-bottom: @spacing-base * 1.5;
|
||||
}
|
||||
|
||||
@media @mq-sm {
|
||||
padding-top: (@spacing-base * 3);
|
||||
padding-bottom: (@spacing-base * 3);
|
||||
margin-bottom: (@spacing-base * 1.5);
|
||||
}
|
||||
|
||||
@media @mq-md {
|
||||
max-width: 400px;
|
||||
margin-right: (@spacing-base * 2);
|
||||
padding-bottom: (@spacing-base * 2);
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
@ -7,13 +7,13 @@ html {
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
min-height: 100%;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
// ==========================================================================
|
||||
|
||||
// Button count arrow size
|
||||
@arrow-size: 8px;
|
||||
@arrow-size: 5px;
|
||||
|
||||
// Radii
|
||||
@border-radius-base: 4px;
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
h1 {
|
||||
margin: 0 0 (@spacing-base / 2);
|
||||
.font-size(@font-size-h1);
|
||||
font-weight: @font-weight-heavy;
|
||||
letter-spacing: @letter-spacing-headings;
|
||||
.font-size(@font-size-h1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user