Html模拟命令窗,CSS3 DOS命令行窗口模拟

这段CSS代码展示了如何创建一个具有@import导入字体、背景颜色、标题和按钮样式的交互式Shell界面。界面包括最大化、最小化和关闭按钮,以及自定义字体和颜色的主题。代码中还包含了滚动条和输入框的样式设计。
摘要由CSDN通过智能技术生成

CSS

语言:

CSSSCSS

确定

@import "https://fonts.googleapis.com/css?family=Inconsolata|Merriweather";

html {

background-color: #028090;

}

html h1,

html h2,

html h3,

html h4,

html h5 {

font-family: 'Merriweather', serif;

color: #00FF00;

}

html p,

html input,

html select,

html button {

font-family: 'Inconsolata', monospace;

color: #00FF00;

}

.container {

position: absolute;

top: 0;

right: 0;

bottom: 0;

left: 0;

display: flex;

}

.container .shell-container {

margin: auto;

background-color: #000000;

width: 900px;

height: 500px;

box-shadow: 0 0 10px #000000;

display: flex;

flex-direction: column;

}

.container .shell-container .header-shell {

margin: auto;

background-color: white;

width: 100%;

height: 35px;

display: flex;

}

.container .shell-container .header-shell .cli-img {

margin: auto 5px;

width: 20px;

height: 20px;

}

.container .shell-container .header-shell .shell-title {

font-size: 13px;

margin: auto 0;

color: #000000;

}

.container .shell-container .header-shell .minimize {

margin: 1px 1px 1px auto;

width: 35px;

height: 33px;

display: flex;

}

.container .shell-container .header-shell .minimize:hover {

background-color: #DFDFDF;

color: #FFFFFF;

}

.container .shell-container .header-shell .minimize:after {

content: '';

transform: rotate(90deg);

margin: auto;

border: 1px solid gray;

height: 10px;

}

.container .shell-container .header-shell .minimize:hover:after {

border-color: #000000;

}

.container .shell-container .header-shell .maximize {

display: flex;

margin: 1px 0;

width: 35px;

height: 33px;

content: "-";

}

.container .shell-container .header-shell .maximize:hover {

background-color: #DFDFDF;

color: #FFFFFF;

}

.container .shell-container .header-shell .maximize:after {

content: '';

transform: rotate(90deg);

margin: auto;

border: 1.5px solid gray;

height: 7.5px;

width: 7.5px;

}

.container .shell-container .header-shell .maximize:hover:after {

border-color: #000000;

}

.container .shell-container .header-shell .close {

display: flex;

margin: 1px;

width: 35px;

height: 33px;

content: "-";

}

.container .shell-container .header-shell .close:hover {

background-color: #FF0000;

color: #FFFFFF;

}

.container .shell-container .header-shell .close:before {

content: '';

transform: rotate(-135deg) translate(-50%, 0%);

margin: auto 0 auto auto;

border: 1px solid gray;

height: 11px;

}

.container .shell-container .header-shell .close:hover:before {

border-color: #FFFFFF;

}

.container .shell-container .header-shell .close:after {

content: '';

transform: rotate(135deg) translate(50%, 0%);

margin: auto auto auto 0;

border: 1px solid gray;

height: 11px;

}

.container .shell-container .header-shell .close:hover:after {

border-color: #FFFFFF;

}

.container .shell-container .body-shell {

margin: auto;

overflow-y: scroll;

height: 470px;

width: 100%;

line-height: 0px;

display: flex;

flex-direction: column;

font-size: 14px;

}

.container .shell-container .body-shell .microsoft-label {

margin: 9px 0;

}

.container .shell-container .body-shell .input {

margin-top: 25px;

display: flex;

}

.container .shell-container .body-shell .input .ping {

margin: auto 2px -5px;

width: 7px;

height: 4px;

animation: pong 1s infinite;

}

@keyframes pong {

0% {

background-color: #DFDFDF;

}

50% {

background-color: #DFDFDF;

}

51% {

background-color: #000000;

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值