aboutsummaryrefslogtreecommitdiff
path: root/src/pages/console.scss
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-30 20:27:26 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-30 20:36:17 +0900
commit6551420e1ae0e91201de72e862e918dd3c97ab43 (patch)
tree1aa9de8949cd76c4f65adfc9424f63bf479669e9 /src/pages/console.scss
parent1145eb34784c1450b920f8e7d672934ef6a98d45 (diff)
move messages to content
Diffstat (limited to 'src/pages/console.scss')
-rw-r--r--src/pages/console.scss92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/pages/console.scss b/src/pages/console.scss
new file mode 100644
index 0000000..5823dce
--- /dev/null
+++ b/src/pages/console.scss
@@ -0,0 +1,92 @@
+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%;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ }
+
+ &-url {
+ display: inline-block;
+ color: green;
+ width: 60%;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ }
+ }
+ }
+
+ &-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;
+ }
+ }
+}