Steven-Harris
8/23/2017 - 8:46 PM

html & css terminal

html & css terminal

<div class="editor">
    <div class="editor__toolbar">
        <div class="button"></div>
        <div class="button"></div>
        <div class="button"></div>
    </div>
    <div class="editor__content">
        <div class="editor__line line">
            <span class="line__number line__number--symbol">→</span> npm install particlesjs —-save
        </div>
    </div>
</div>
/*********************************************************
  EDITOR
*********************************************************/

.editor {
    width: 100%;
    margin: 33px 0 34px 0;
    background-color: #2A2F34;
    border-radius: 5px;
    text-align: left;
}

.editor .editor__toolbar {
    padding: 6px 15px;
}

.editor .editor__toolbar .button {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 2px;
    padding: 0;
    border-radius: 100%;
}

.editor .editor__toolbar .button:nth-child(1) {
    background-color: #ED7268;
}

.editor .editor__toolbar .button:nth-child(2) {
    background-color: #F9E600;
}

.editor .editor__toolbar .button:nth-child(3) {
    margin-right: 0;
    background-color: #4BD591;
}

.editor .editor__content {
    display: table;
    padding: 24px 15px 35px 15px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.editor .editor__element {
    color: #539EEC;
}

.editor .editor__value {
    color: #CE9079;
}

.editor .editor__comment {
    color: #6e7884;
}

.editor .editor__content .line {
    display: table-row;
    line-height: 2.3;
    color: #fff;
}

.line .line__number {
    display: table-cell;
    width: 25px;
    color: #6F7984;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.line .line__number.line__number--symbol {
    position: relative;
    top: 1px;
    font-size: 18px;
    line-height: normal;
}