termynal.css
This file
Path
docs/css/termynal.css
101 lines · 1.9 KiB · CSS
Last changed by
:sparkles: Add termynal for awesome docsSebastián Ramírezbefore adoptionc004fb6
History of this fileTake it
:sparkles: Add termynal for awesome docsSebastián Ramírezbefore adoptionc004fb6
lines 1–101why, one step back1/**2 * termynal.js3 *4 * @author Ines Montani <ines@ines.io>5 * @version 0.0.16 * @license MIT7 */89:root {10 --color-bg: #252a33;11 --color-text: #eee;12 --color-text-subtle: #a2a2a2;13}1415[data-termynal] {16 width: 750px;17 max-width: 100%;18 background: var(--color-bg);19 color: var(--color-text);20 font-size: 18px;21 font-family: 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace;22 border-radius: 4px;23 padding: 75px 45px 35px;24 position: relative;25 -webkit-box-sizing: border-box;26 box-sizing: border-box;27}2829[data-termynal]:before {30 content: '';31 position: absolute;32 top: 15px;33 left: 15px;34 display: inline-block;35 width: 15px;36 height: 15px;37 border-radius: 50%;38 /* A little hack to display the window buttons in one pseudo element. */39 background: #d9515d;40 -webkit-box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;41 box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;42}4344[data-termynal]:after {45 content: 'bash';46 position: absolute;47 color: var(--color-text-subtle);48 top: 5px;49 left: 0;50 width: 100%;51 text-align: center;52}5354[data-ty] {55 display: block;56 line-height: 2;57}5859[data-ty]:before {60 /* Set up defaults and ensure empty lines are displayed. */61 content: '';62 display: inline-block;63 vertical-align: middle;64}6566[data-ty="input"]:before,67[data-ty-prompt]:before {68 margin-right: 0.75em;69 color: var(--color-text-subtle);70}7172[data-ty="input"]:before {73 content: '$';74}7576[data-ty][data-ty-prompt]:before {77 content: attr(data-ty-prompt);78}7980[data-ty-cursor]:after {81 content: attr(data-ty-cursor);82 font-family: monospace;83 margin-left: 0.5em;84 -webkit-animation: blink 1s infinite;85 animation: blink 1s infinite;86}878889/* Cursor animation */9091@-webkit-keyframes blink {92 50% {93 opacity: 0;94 }95}9697@keyframes blink {98 50% {99 opacity: 0;100 }101}