aboutsummaryrefslogtreecommitdiff
path: root/src/console/console.scss
blob: 7bb46dd4e06094003c530e51455eb44856c26f8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
html, body, * {
  margin: 0;
  padding: 0;
}

body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.vimvixen-console {
  border-top: 1px solid gray;
  bottom: 0;
  margin: 0;
  padding: 0;

  @mixin consoole-font {
    font-style: normal;
    font-family: monospace;
    font-size: 12px;
    line-height: 16px;
  }

  &-completion {
    background-color: white;

    @include consoole-font;

    &-title {
      background-color: lightgray;
      font-weight: bold;
      margin: 0;
      padding: 0;
    }

    &-item {
      padding-left: 1.5rem;
      background-position: 0 center;
      background-size: contain;
      background-repeat: no-repeat;
      white-space: nowrap;

      &.vimvixen-completion-selected {
        background-color: yellow;
      }

      &-caption {
        display: inline-block;
        width: 40%;
      }

      &-url {
        display: inline-block;
        color: green;
      }
    }
  }

  &-error {
    background-color: red;
    font-weight: bold;
    color: white;

    @include consoole-font;
  }

  &-command {
    background-color: white;
    display: flex;

    &-prompt:before {
      content: ':';

      @include consoole-font;
    }

    &-input {
      border: none;
      flex-grow: 1;

      @include consoole-font;
    }
  }
}