Skip to content
Myr

termynal.css

This file

Path

docs/css/termynal.css

110 lines · 2.2 KiB · CSS

Last changed by

✨ Richify, add integrations with Rich everywhere (#419)Sebastián Ramírezbefore adoption6208b5b

History of this file

Take it

The walk stopped after 200 commits: lines older than 9009a8d point at it.

:bookmark: Release version 0.0.8Sebastián Ramírezbefore adoption9009a8d

lines 1–19why, one step back
1/**
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);

✨ Richify, add integrations with Rich everywhere (#419)Sebastián Ramírezbefore adoption6208b5b

lines 20–21why, one step back
20 /* font-size: 18px; */
21 font-size: 15px;

:bookmark: Release version 0.0.8Sebastián Ramírezbefore adoption9009a8d

lines 22–28why, one step back
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;

✨ Richify, add integrations with Rich everywhere (#419)Sebastián Ramírezbefore adoption6208b5b

line 29why, one step back
29 line-height: 1.2;

:bookmark: Release version 0.0.8Sebastián Ramírezbefore adoption9009a8d

lines 30–110why, one step back
30}
3132[data-termynal]:before {33 content: '';34 position: absolute;35 top: 15px;36 left: 15px;37 display: inline-block;38 width: 15px;39 height: 15px;40 border-radius: 50%;41 /* A little hack to display the window buttons in one pseudo element. */42 background: #d9515d;43 -webkit-box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;44 box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;45}4647[data-termynal]:after {48 content: 'bash';49 position: absolute;50 color: var(--color-text-subtle);51 top: 5px;52 left: 0;53 width: 100%;54 text-align: center;55}5657a[data-terminal-control] {58 text-align: right;59 display: block;60 color: #aebbff;61}6263[data-ty] {64 display: block;65 line-height: 2;66}6768[data-ty]:before {69 /* Set up defaults and ensure empty lines are displayed. */70 content: '';71 display: inline-block;72 vertical-align: middle;73}7475[data-ty="input"]:before,76[data-ty-prompt]:before {77 margin-right: 0.75em;78 color: var(--color-text-subtle);79}8081[data-ty="input"]:before {82 content: '$';83}8485[data-ty][data-ty-prompt]:before {86 content: attr(data-ty-prompt);87}8889[data-ty-cursor]:after {90 content: attr(data-ty-cursor);91 font-family: monospace;92 margin-left: 0.5em;93 -webkit-animation: blink 1s infinite;94 animation: blink 1s infinite;95}969798/* Cursor animation */99100@-webkit-keyframes blink {101 50% {102 opacity: 0;103 }104}105106@keyframes blink {107 50% {108 opacity: 0;109 }110}