termynal.css
This file
Path
docs/css/termynal.css
111 lines · 2.2 KiB · CSS
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 7217bf5 point at it.
⬆ [pre-commit.ci] pre-commit autoupdate (#1176)pre-commit-ci[bot]before adoption7217bf5
lines 1–111why, 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-size: 15px;22 /* font-family: 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace; */23 font-family: 'Roboto Mono', 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace;24 border-radius: 4px;25 padding: 75px 45px 35px;26 position: relative;27 -webkit-box-sizing: border-box;28 box-sizing: border-box;29 /* Custom line-height */30 line-height: 1.2;31}3233[data-termynal]:before {34 content: '';35 position: absolute;36 top: 15px;37 left: 15px;38 display: inline-block;39 width: 15px;40 height: 15px;41 border-radius: 50%;42 /* A little hack to display the window buttons in one pseudo element. */43 background: #d9515d;44 -webkit-box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;45 box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;46}4748[data-termynal]:after {49 content: 'bash';50 position: absolute;51 color: var(--color-text-subtle);52 top: 5px;53 left: 0;54 width: 100%;55 text-align: center;56}5758a[data-terminal-control] {59 text-align: right;60 display: block;61 color: #aebbff;62}6364[data-ty] {65 display: block;66 line-height: 2;67}6869[data-ty]:before {70 /* Set up defaults and ensure empty lines are displayed. */71 content: '';72 display: inline-block;73 vertical-align: middle;74}7576[data-ty="input"]:before,77[data-ty-prompt]:before {78 margin-right: 0.75em;79 color: var(--color-text-subtle);80}8182[data-ty="input"]:before {83 content: '$';84}8586[data-ty][data-ty-prompt]:before {87 content: attr(data-ty-prompt);88}8990[data-ty-cursor]:after {91 content: attr(data-ty-cursor);92 font-family: monospace;93 margin-left: 0.5em;94 -webkit-animation: blink 1s infinite;95 animation: blink 1s infinite;96}979899/* Cursor animation */100101@-webkit-keyframes blink {102 50% {103 opacity: 0;104 }105}106107@keyframes blink {108 50% {109 opacity: 0;110 }111}