diff options
| author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-12-08 10:48:25 +0900 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-08 10:48:25 +0900 | 
| commit | 9c34b961c68588d95cc942465dae55388e861ffa (patch) | |
| tree | 697d1cf6ac625aacc4d3685ee37b7a051257f9ec /src/console/components/console.scss | |
| parent | 97787c773f0d1b5e80beb438246b5a693dbd08aa (diff) | |
| parent | 80de2149ad592c97158f1adb72b352dab3e0858e (diff) | |
Merge pull request #507 from ueokande/window-postmessage
Window postmessage
Diffstat (limited to 'src/console/components/console.scss')
| -rw-r--r-- | src/console/components/console.scss | 103 | 
1 files changed, 103 insertions, 0 deletions
diff --git a/src/console/components/console.scss b/src/console/components/console.scss new file mode 100644 index 0000000..c0b9b12 --- /dev/null +++ b/src/console/components/console.scss @@ -0,0 +1,103 @@ +html, body, * { +  margin: 0; +  padding: 0; +} + +body { +  position: absolute; +  bottom: 0; +  left: 0; +  right: 0; +  overflow: hidden; +} + +.vimvixen-console { +  bottom: 0; +  margin: 0; +  padding: 0; + +  @mixin consoole-font { +    font-style: normal; +    font-family: monospace; +    font-size: 12px; +    line-height: 16px; +  } + +  &-command-wrapper { +    border-top: 1px solid gray; +  } + +  &-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: pre; + +      &.vimvixen-completion-selected { +        background-color: yellow; +      } + +      &-caption { +        display: inline-block; +        width: 40%; +        text-overflow: ellipsis; +        overflow: hidden; +      } + +      &-url { +        display: inline-block; +        color: green; +        width: 60%; +        text-overflow: ellipsis; +        overflow: hidden; +      } +    } +  } + +  &-message { +    @include consoole-font; + +    border-top: 1px solid gray; +  } + +  &-error { +    background-color: red; +    font-weight: bold; +    color: white; +  } + +  &-info { +    background-color: white; +    font-weight: normal; +    color: green; +  } + +  &-command { +    background-color: white; +    display: flex; + +    &-prompt { +      @include consoole-font; +    } + +    &-input { +      border: none; +      flex-grow: 1; + +      @include consoole-font; +    } +  } +}  | 
