diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 1e60304e..22450f2e 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -496,6 +496,12 @@
"optionsActions": {
"message": "Actions"
},
+ "optionsSave": {
+ "message": "Save"
+ },
+ "optionsSaved": {
+ "message": "Options saved."
+ },
"optionsOpenManager": {
"message": "Open styles manager"
},
diff --git a/options/index.css b/options/index.css
index 06a02eea..22e9bab8 100644
--- a/options/index.css
+++ b/options/index.css
@@ -1,22 +1,102 @@
body {
- margin: 10px;
- font-family: "Helvetica Neue",Helvetica,sans-serif;
+ margin: 0;
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
font-size: 12px;
+ display: flex;
+ flex-direction: column;
+}
+
+body > * {
+ padding: 1em 1rem 1em 44px;
}
table {
width: 100%;
+ border-collapse: collapse;
}
+
+td {
+ padding: 2px 0;
+}
+
td:last-child {
text-align: right;
}
-input[type=number],
+a {
+ text-decoration-skip: ink;
+}
+
button {
+ text-align: center;
width: 80px;
}
-.notes {
+h1:not(:first-child) {
+ margin-top: 0;
+}
+
+input[type=number] {
+ width: 80px;
+ text-align: right;
+ padding-right: 1em;
+}
+
+#actions {
+ margin-top: -2em;
+}
+
+#save {
+ text-align: right;
+ position: relative;
+}
+
+#save-status {
+ margin-top: .5ex;
+ position: absolute;
+ right: 0;
+ visibility: hidden;
+}
+
+#save-status.fadeinout {
+ visibility: visible;
+ animation: fadeinout 1s ease-in-out;
+ animation-fill-mode: both;
+}
+
+#notes {
+ background-color: #f4f4f4;
+ margin-top: .5em;
font-size: 90%;
color: #999;
}
+
+#notes ol {
+ margin: 0;
+ padding: 0;
+}
+
+#notes li:not(last-child) {
+ margin-bottom: 1ex;
+}
+
+input[type="color"] {
+ width: 80px;
+ box-sizing: border-box;
+ height: 2em;
+}
+
+#notes a {
+ color: inherit;
+}
+
+#notes a:hover {
+ color: black;
+}
+
+@keyframes fadeinout {
+ 0% { opacity: 0 }
+ 10% { opacity: 1 }
+ 25% { opacity: 1 }
+ 100% { opacity: 0 }
+}
diff --git a/options/index.html b/options/index.html
index a72b41ec..3efc5bf8 100644
--- a/options/index.html
+++ b/options/index.html
@@ -3,13 +3,16 @@
Stylus Options
-
+
+
+
+
-
-
+
-
-
-
+
+
+
2 |
|
@@ -47,17 +50,19 @@
-
-
-
+
+
+
-
-