Style adjustments to "Add" menus

pull/1/head
David Benqué 4 years ago
parent f9698ae8a6
commit 62a6e99c3e

@ -152,9 +152,9 @@
} }
.cp-form-creator-add-full { .cp-form-creator-add-full {
display: flex; display: flex;
align-items: center; flex-flow: column;
margin: 50px 0px 100px 0px; margin: 20px 0px 100px 0px;
&> div:first-child { &> div:first-child { // XXX + on the side
border-right: 1px solid fade(@cryptpad_text_col, 25%); border-right: 1px solid fade(@cryptpad_text_col, 25%);
display: flex; display: flex;
height: 100%; height: 100%;
@ -162,14 +162,17 @@
padding-right: 10px; padding-right: 10px;
margin-right: 10px; margin-right: 10px;
i { i {
color: fade(@cryptpad_text_col, 25%); color: @cryptpad_text_col;
font-size: 30px; font-size: 30px;
width: 50px;
text-align: center;
} }
} }
.cp-form-creator-control-inline { .cp-form-creator-control-inline {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: space-around; justify-content: space-around;
margin-left: 50px;
button:not(:last-child) { button:not(:last-child) {
margin-right: 5px; margin-right: 5px;
} }

@ -1945,7 +1945,7 @@ define([
var full = !uid; var full = !uid;
var idx = content.order.indexOf(uid); var idx = content.order.indexOf(uid);
var addControl = function (type) { var addControl = function (type) {
var btn = h('button.btn.btn-default', { var btn = h('button.btn.btn-secondary', {
title: full ? undefined : Messages['form_type_'+type] title: full ? undefined : Messages['form_type_'+type]
}, [ }, [
(TYPES[type] || STATIC_TYPES[type]).icon.cloneNode(), (TYPES[type] || STATIC_TYPES[type]).icon.cloneNode(),
@ -1990,10 +1990,13 @@ define([
$(add).toggleClass('displayed'); $(add).toggleClass('displayed');
}); });
} }
else {
$(add).append(h('span', Messages.tag_add));
}
var inlineCls = full ? '-full' : '-inline'; var inlineCls = full ? '-full' : '-inline';
return h('div.cp-form-creator-add'+inlineCls, [ return h('div.cp-form-creator-add'+inlineCls, [
h('div', add), add,
buttons buttons
]); ]);

Loading…
Cancel
Save