1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-12-24 18:36:11 +01:00
site/_src/_assets/styles/bigchain/_terminal.scss

116 lines
2.3 KiB
SCSS
Raw Normal View History

//
// Terminal window
// ---
2017-05-29 21:15:48 +02:00
// bigchaindb.com
//
.terminal {
@extend .windowframe;
max-width: 100%;
width: 100%;
background: darken($code-bg, 10%);
code {
padding: $spacer;
2017-05-31 00:22:14 +02:00
color: #fdce93;
display: block;
word-break: break-all;
word-wrap: break-word;
background: none;
}
code > span {
display: block;
&:before {
2017-05-31 00:22:14 +02:00
content: '$';
color: $code-bg;
margin-right: $spacer;
}
2017-05-31 00:22:14 +02:00
&.comment {
2017-05-31 00:22:14 +02:00
&:before { opacity: 0; }
}
}
.comment {
color: $brand-main-gray;
}
2016-02-18 02:35:02 +01:00
.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 {
2017-05-31 00:22:14 +02:00
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 {
2017-05-31 00:22:14 +02:00
content: '';
width: 6px;
height: 6px;
position: absolute;
left: 6px;
top: 4px;
2017-05-31 00:22:14 +02:00
background: #f55e4a;
border-radius: 50%;
// second & third knob
2017-05-31 00:22:14 +02:00
box-shadow: 10px 0 0 #f7ca44, 20px 0 0 #48c54d;
@media (min-width: $screen-sm-min) {
width: 9px;
height: 9px;
left: 9px;
top: 6px;
2017-05-31 00:22:14 +02:00
box-shadow: 15px 0 0 #f7ca44, 30px 0 0 #48c54d;
}
}
}