Skip to content
Myr

termynal.css

This file

Path

docs/css/termynal.css

107 lines · 2.0 KiB · CSS

Last changed by

:sparkles: Fix Termynal size, update first steps, add fast buttonSebastián Ramírezbefore adoption234e50a

History of this file

Take it

:sparkles: Add termynal for awesome docsSebastián Ramírezbefore adoptionc004fb6

lines 1–53why, 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-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}53

:sparkles: Fix Termynal size, update first steps, add fast buttonSebastián Ramírezbefore adoption234e50a

lines 54–59why, one step back
54a[data-terminal-control] {
55 text-align: right;56 display: block;57 color: #aebbff;58}59

:sparkles: Add termynal for awesome docsSebastián Ramírezbefore adoptionc004fb6

lines 60–107why, one step back
60[data-ty] {
61 display: block;62 line-height: 2;63}6465[data-ty]:before {66 /* Set up defaults and ensure empty lines are displayed. */67 content: '';68 display: inline-block;69 vertical-align: middle;70}7172[data-ty="input"]:before,73[data-ty-prompt]:before {74 margin-right: 0.75em;75 color: var(--color-text-subtle);76}7778[data-ty="input"]:before {79 content: '$';80}8182[data-ty][data-ty-prompt]:before {83 content: attr(data-ty-prompt);84}8586[data-ty-cursor]:after {87 content: attr(data-ty-cursor);88 font-family: monospace;89 margin-left: 0.5em;90 -webkit-animation: blink 1s infinite;91 animation: blink 1s infinite;92}939495/* Cursor animation */9697@-webkit-keyframes blink {98 50% {99 opacity: 0;100 }101}102103@keyframes blink {104 50% {105 opacity: 0;106 }107}