Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit574b6d1fd848be15dfda527a52796e84003844e1 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-04-08 22:29:23 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-04-08 22:29:23 +0800
Files1a27da4fee8c1bef4e682cfcfa187522ce7e2875 /src
Spectre-Dark-Gruvbox-574b6d1fd848be15dfda527a52796e84003844e1.tar
Spectre-Dark-Gruvbox-574b6d1fd848be15dfda527a52796e84003844e1.tar.gz
Spectre-Dark-Gruvbox-574b6d1fd848be15dfda527a52796e84003844e1.zip
Parent2dccd2d77a0daa36a51a0bc687b185cf3ddfcd58 (diff)
Cleanup code and add input readonly style
3 files changed, 55 insertions, 8 deletions
-rw-r--r--src/carousels.less12
-rw-r--r--src/forms.less8
-rw-r--r--src/icons.less43
diff --git a/src/carousels.less b/src/carousels.less
index 8b01e94..ee30edf 100644
--- a/src/carousels.less
+++ b/src/carousels.less
@@ -2,7 +2,6 @@
.carousel {
background: @bg-color;
display: block;
- height: 50vh;
overflow: hidden;
position: relative;
width: 100%;
@@ -11,6 +10,11 @@
height: 100%;
left: 0;
position: relative;
+ &::before {
+ content: "";
+ display: block;
+ padding-bottom: 56.25%;
+ }
.carousel-item {
animation: carousel-slideout 1s ease-in-out 1;
@@ -97,12 +101,6 @@
}
}
}
-
- &.carousel-autoplay {
- .carousel-item {
- //animation: carousel-autoplay .15s infinite;
- }
- }
}
@keyframes carousel-slidein {
diff --git a/src/forms.less b/src/forms.less
index fe08dc7..2255574 100644
--- a/src/forms.less
+++ b/src/forms.less
@@ -362,7 +362,7 @@
}
}
-// Form disabled
+// Form disabled and readonly
.form-input,
.form-select {
&:disabled,
@@ -373,6 +373,12 @@
}
}
+.form-input {
+ &[readonly] {
+ background-color: @bg-color;
+ }
+}
+
input {
&:disabled,
&.disabled {
diff --git a/src/icons.less b/src/icons.less
index edcc159..ce13756 100644
--- a/src/icons.less
+++ b/src/icons.less
@@ -554,6 +554,49 @@
}
}
+// Icon location
+.icon-location {
+ &::before {
+ border: @icon-border-width solid currentColor;
+ border-radius: 50% 50% 50% 0;
+ content: "";
+ height: .8em;
+ transform: translate(-50%, -60%) rotate(-45deg);
+ width: .8em;
+ }
+ &::after {
+ border: @icon-border-width solid currentColor;
+ border-radius: 50%;
+ content: "";
+ height: .2em;
+ transform: translate(-50%, -80%);
+ width: .2em;
+ }
+}
+
+// Icon emoji
+.icon-emoji {
+ border: @icon-border-width solid currentColor;
+ border-radius: 50%;
+ &::before {
+ border-radius: 50%;
+ box-shadow: -.17em -.15em, .17em -.15em;
+ content: "";
+ height: .1em;
+ width: .1em;
+ }
+ &::after {
+ border: @icon-border-width solid currentColor;
+ border-bottom-color: transparent;
+ border-radius: 50%;
+ border-right-color: transparent;
+ content: "";
+ height: .5em;
+ transform: translate(-50%, -40%) rotate(-135deg);
+ width: .5em;
+ }
+}
+
// Component icon support
.btn,
.toast,