Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add checkbox component styles #123

Benjamin0bd0bd8c5d46
diff --git a/web/css/checkbox.css b/web/css/checkbox.css
new file mode 100644
index 000000000..fa32cf956
--- /dev/null
+++ b/web/css/checkbox.css
@@ -0,0 +1,28 @@
+.checkbox {
+ position: relative;
+
+}
+.checkbox input {
+ position: absolute;
+ opacity: 0;
+ cursor: pointer;
+ height: 20px;
+ width: 20px;
+ left: 0;
+}
+.checkbox:before {
+ content: '\00a0';
+ display: inline-block;
+ height: 20px;
+ width: 20px;
+ border: 2px solid #d54f21;
+ text-align: center;
+ font-size: 15px;
+ line-height: 20px;
+ margin-right: 5px;
+}
+.checkbox.checked:before {
+ color: #fff;
+ content: '\2713';
+ background-color: #d54f21;
+}
\ No newline at end of file
diff --git a/web/css/main.css b/web/css/main.css
index 2d0f0d24c..ba900300d 100644
--- a/web/css/main.css
+++ b/web/css/main.css
@@ -20,6 +20,7 @@
@import url("alert.css");
@import url("bank.css");
@import url("button.css");
+@import url("checkbox.css");
@import url("map.css");
@import url("link.css");
@import url("palettes.css");