aboutsummaryrefslogtreecommitdiff
path: root/src/components/post_status_form
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/post_status_form')
-rw-r--r--src/components/post_status_form/post_status_form.vue67
1 files changed, 36 insertions, 31 deletions
diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue
index f65058f4..c51639db 100644
--- a/src/components/post_status_form/post_status_form.vue
+++ b/src/components/post_status_form/post_status_form.vue
@@ -331,7 +331,7 @@
<script src="./post_status_form.js"></script>
<style lang="scss">
-@import '../../_variables.scss';
+@import "../../variables";
.post-status-form {
position: relative;
@@ -378,7 +378,9 @@
&:hover {
text-decoration: underline;
}
- svg, i {
+
+ svg,
+ i {
margin-left: 0.2em;
font-size: 0.8em;
transform: rotate(90deg);
@@ -428,7 +430,25 @@
}
}
- .media-upload-icon, .poll-icon, .emoji-icon {
+ // Order is not necessary but a good indicator
+ .media-upload-icon {
+ order: 1;
+ justify-content: left;
+ }
+
+ .emoji-icon {
+ order: 2;
+ justify-content: center;
+ }
+
+ .poll-icon {
+ order: 3;
+ justify-content: right;
+ }
+
+ .media-upload-icon,
+ .poll-icon,
+ .emoji-icon {
font-size: 1.85em;
line-height: 1.1;
flex: 1;
@@ -436,16 +456,20 @@
display: flex;
align-items: center;
- &.selected, &:hover {
+ &.selected,
+ &:hover {
// needs to be specific to override icon default color
- svg, i, label {
+ svg,
+ i,
+ label {
color: $fallback--lightText;
color: var(--lightText, $fallback--lightText);
}
}
&.disabled {
- svg, i {
+ svg,
+ i {
cursor: not-allowed;
color: $fallback--icon;
color: var(--btnDisabledText, $fallback--icon);
@@ -458,32 +482,17 @@
}
}
- // Order is not necessary but a good indicator
- .media-upload-icon {
- order: 1;
- justify-content: left;
- }
-
- .emoji-icon {
- order: 2;
- justify-content: center;
- }
-
- .poll-icon {
- order: 3;
- justify-content: right;
- }
-
.error {
text-align: center;
}
.media-upload-wrapper {
- margin-right: .2em;
- margin-bottom: .5em;
+ margin-right: 0.2em;
+ margin-bottom: 0.5em;
width: 18em;
- img, video {
+ img,
+ video {
object-fit: contain;
max-height: 10em;
}
@@ -557,18 +566,14 @@
}
}
- .btn[disabled] {
- cursor: not-allowed;
- }
-
@keyframes fade-in {
from { opacity: 0; }
- to { opacity: 0.6; }
+ to { opacity: 0.6; }
}
@keyframes fade-out {
from { opacity: 0.6; }
- to { opacity: 0; }
+ to { opacity: 0; }
}
.drop-indicator {