You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/assets/stylesheets/player/player.css.scss

185 lines
3.0 KiB
SCSS

// Place all the styles related to the Asciicasts controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
@import '../terminal-font';
@import '../shared';
$color1: #00A0B0;
$color2: #6A4A3C;
$color3: #CC333F;
$color4: #EB6841;
$color5: #EDC951;
@mixin player-overlay {
background-color: rgba(0, 0, 0, 0.5);
z-index: 10;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.player {
// float: left;
display: block;
padding: 0px;
margin: 0 auto;
position: relative;
&.not-started .hud .toggle {
background-color: $color4;
.play {
display: inline;
}
.pause {
display: none;
}
}
.terminal, .font-sample, .hud {
@include terminal-font;
.line {
line-height: 15px;
span {
padding: 1px 0;
}
}
}
.terminal {
overflow: hidden;
padding: 3px;
margin: 0px;
display: block;
white-space: pre;
background-color: black;
color: #ccc;
border: 0;
word-wrap: normal;
.line {
/* background-color: black;*/
/* padding: 0;*/
/* margin: 0;*/
}
&.cursor-on {
.line {
.cursor.visible {
background-color: #D3D7CF;
}
}
}
}
.loading {
@include player-overlay;
background-image: url(image-path('loader.gif'));
background-repeat: no-repeat;
background-position: center;
}
.start-prompt {
@include player-overlay;
cursor: pointer;
.play-button {
.arrow {
color: white;
font-size: 140px;
width: 150px;
margin-left: -75px;
margin-top: -100px;
-webkit-font-smoothing: none;
&:hover {
text-shadow: 2px 2px 5px $main-color;
// -moz-transform: rotate(-5deg);
// -webkit-transform: rotate(-5deg);
}
}
}
}
.hud {
padding: 0;
margin: 0;
border: 0;
background-color: #eee;
opacity: 0;
position: absolute;
left: 2px;
right: 2px;
bottom: 2px;
color: black;
-webkit-transition: opacity 0.3s ease-in-out;
.toggle {
background-color: black;
color: white;
cursor: pointer;
.play {
display: none;
}
.pause {
display: inline;
}
&.paused {
background-color: $color4;
.play {
display: inline;
}
.pause {
display: none;
}
}
}
.progress {
color: black;
13 years ago
cursor: pointer;
span:hover {
background-color: #777;
}
}
.time {
background-color: black;
color: white;
}
}
&:hover .hud {
opacity: 1.0;
}
.bright { font-weight: bold }
.underline { text-decoration: underline }
.italic { font-style: italic }
.fg8 { font-weight: bold }
.fg9 { font-weight: bold }
.fg10 { font-weight: bold }
.fg11 { font-weight: bold }
.fg12 { font-weight: bold }
.fg13 { font-weight: bold }
.fg14 { font-weight: bold }
.fg15 { font-weight: bold }
}