Skip to content
Myr

termynal.css

This file

Path

docs/css/termynal.css

120 lines · 2.4 KiB · CSS

Last changed by

🐛 Fix showing `fast` button as external link in animated terminals in docs (#1912)Philipp Stahlbergbefore adoption904a3b2

History of this file

Take it

The walk stopped after 200 commits: lines older than 3780a29 point at it.

📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29

lines 1–57why, 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);20 /* font-size: 18px; */21 font-size: 15px;22 /* font-family: 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace; */23 font-family: var(--md-code-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}57

🐛 Fix showing `fast` button as external link in animated terminals in docs (#1912)Philipp Stahlbergbefore adoption904a3b2

lines 58–59why, one step back
58button[data-terminal-control] {
59 cursor: pointer;

📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29

lines 60–61why, one step back
60 text-align: right;
61 display: block;

🐛 Fix showing `fast` button as external link in animated terminals in docs (#1912)Philipp Stahlbergbefore adoption904a3b2

line 62why, one step back
62 width: 100%;

📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29

line 63why, one step back
63 color: #aebbff;

🐛 Fix showing `fast` button as external link in animated terminals in docs (#1912)Philipp Stahlbergbefore adoption904a3b2

lines 64–70why, one step back
64 border: 0;
65 background: transparent;66 font: inherit;67}6869button[data-terminal-control]:hover {70 color: var(--color-text);

📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29

lines 71–120why, one step back
71}
7273[data-ty] {74 display: block;75 line-height: 2;76}7778[data-ty]:before {79 /* Set up defaults and ensure empty lines are displayed. */80 content: '';81 display: inline-block;82 vertical-align: middle;83}8485[data-ty="input"]:before,86[data-ty-prompt]:before {87 margin-right: 0.75em;88 color: var(--color-text-subtle);89}9091[data-ty="input"]:before {92 content: '$';93}9495[data-ty][data-ty-prompt]:before {96 content: attr(data-ty-prompt);97}9899[data-ty-cursor]:after {100 content: attr(data-ty-cursor);101 font-family: monospace;102 margin-left: 0.5em;103 -webkit-animation: blink 1s infinite;104 animation: blink 1s infinite;105}106107108/* Cursor animation */109110@-webkit-keyframes blink {111 50% {112 opacity: 0;113 }114}115116@keyframes blink {117 50% {118 opacity: 0;119 }120}