1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-30 07:38:01 +01:00
site/_src/_assets/styles/bigchain/_terminal.scss
Matthias Kretschmann 2705fa90e3 updated branding (#99)
- new typeface: Europa, loaded from Typekit
- new colors, reduced gray tones
- new hero image
- new gradient overlay
- new buttons
- bigger default font sizes
- ditch caps for action items
2017-04-10 17:14:35 +02:00

116 lines
2.3 KiB
SCSS

//
// Terminal window
// ---
// bigchain.io
//
.terminal {
@extend .windowframe;
max-width: 100%;
width: 100%;
background: darken($code-bg, 10%);
code {
padding: $spacer;
color:#fdce93;
display: block;
word-break: break-all;
word-wrap: break-word;
background: none;
}
code > span {
display: block;
&:before {
content: "$";
color: $code-bg;
margin-right: $spacer;
}
&.comment {
&:before { opacity: 0 }
}
}
.comment {
color: $brand-main-gray;
}
.deps {
color: #8cd0d3;
opacity: .5;
font-style: italic;
}
}
.terminal__link {
box-shadow: none;
&:hover,
&:focus {
background: none;
box-shadow: inset 0 -2px 0 $brand-primary;
}
}
$frame-height: 21px;
$frame-height-mobile: ($frame-height / 1.5);
$frame-border-radius: $border-radius;
.windowframe {
display: inline-block;
max-width: 100%;
margin-left: auto;
margin-right: auto;
position: relative;
padding-top: $frame-height-mobile;
border-radius: $frame-border-radius;
overflow: hidden;
@media (min-width: $screen-sm-min) {
padding-top: $frame-height;
}
// title bar
&:before {
content: "";
display: block;
width: 100%;
height: $frame-height-mobile;
border-top-left-radius: $frame-border-radius;
border-top-right-radius: $frame-border-radius;
background: linear-gradient(to bottom, $gray-dark 0%, $gray-dark 100%);
margin-top: -($frame-height-mobile);
@media (min-width: $screen-sm-min) {
height: $frame-height;
margin-top: -($frame-height);
}
}
// knobs
&:after {
content: "";
width: 6px;
height: 6px;
position: absolute;
left: 6px;
top: 4px;
background: #F55E4A;
border-radius: 50%;
// second & third knob
box-shadow: 10px 0 0 #F7CA44, 20px 0 0 #48C54D;
@media (min-width: $screen-sm-min) {
width: 9px;
height: 9px;
left: 9px;
top: 6px;
box-shadow: 15px 0 0 #F7CA44, 30px 0 0 #48C54D;
}
}
}