mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
81 lines
18 KiB
CSS
81 lines
18 KiB
CSS
|
.form-group.has-errors { background: rgba(255, 0, 0, 0.05); border: 1px solid rgba(255, 0, 0, 0.2); border-radius: 3px; margin: 0 -5px; padding: 0 5px; }
|
||
|
|
||
|
.form-errors { color: #b52b27; }
|
||
|
|
||
|
.form-honeybear { visibility: hidden; position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
|
||
|
|
||
|
.form-errors p { margin: 0; }
|
||
|
|
||
|
.form-input-file input { display: none; }
|
||
|
|
||
|
.form-input-file .dz-default.dz-message { position: absolute; text-align: center; left: 0; right: 0; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); margin: 0; }
|
||
|
|
||
|
.form-input-file.dropzone { position: relative; min-height: 70px; border-radius: 3px; margin-bottom: .85rem; border: 2px dashed #ccc; color: #aaa; padding: 0.5rem; }
|
||
|
|
||
|
.form-input-file.dropzone .dz-preview { margin: 0.5rem; }
|
||
|
|
||
|
.form-input-file.dropzone .dz-preview:hover { z-index: 2; }
|
||
|
|
||
|
.form-input-file.dropzone .dz-preview .dz-error-message { min-width: 140px; width: auto; }
|
||
|
|
||
|
.form-input-file.dropzone .dz-preview .dz-image, .form-input-file.dropzone .dz-preview.dz-file-preview .dz-image { border-radius: 3px; z-index: 1; }
|
||
|
|
||
|
.form-tabs .tabs-nav { display: flex; padding-top: 1px; margin-bottom: -1px; }
|
||
|
|
||
|
.form-tabs .tabs-nav a { flex: 1; transition: color 0.5s ease, background 0.5s ease; cursor: pointer; text-align: center; padding: 10px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eee; border-radius: 5px 5px 0 0; }
|
||
|
|
||
|
.form-tabs .tabs-nav a.active { border: 1px solid #eee; border-bottom: 1px solid transparent; margin: 0 -1px; }
|
||
|
|
||
|
.form-tabs .tabs-nav a.active span { color: #000; }
|
||
|
|
||
|
.form-tabs .tabs-nav span { display: inline-block; line-height: 1.1; }
|
||
|
|
||
|
.form-tabs.subtle .tabs-nav { margin-right: 0 !important; }
|
||
|
|
||
|
.form-tabs .tabs-content .tab__content { display: none; padding-top: 2rem; }
|
||
|
|
||
|
.form-tabs .tabs-content .tab__content.active { display: block; }
|
||
|
|
||
|
.checkboxes { display: inline-block; }
|
||
|
|
||
|
.checkboxes label { display: inline; cursor: pointer; position: relative; padding: 0 0 0 20px; margin-right: 15px; }
|
||
|
|
||
|
.checkboxes label:before { content: ""; display: inline-block; width: 20px; height: 20px; left: 0; margin-top: 0; margin-right: 10px; position: absolute; border-radius: 3px; border: 1px solid #e6e6e6; }
|
||
|
|
||
|
.checkboxes input[type=checkbox] { display: none; }
|
||
|
|
||
|
.checkboxes input[type=checkbox]:checked + label:before { content: "\2713"; font-size: 20px; line-height: 1; text-align: center; }
|
||
|
|
||
|
.checkboxes.toggleable label { margin-right: 0; }
|
||
|
|
||
|
.form-field-toggleable .checkboxes.toggleable { margin-right: 5px; vertical-align: middle; }
|
||
|
|
||
|
.form-field-toggleable .checkboxes + label { display: inline-block; }
|
||
|
|
||
|
.switch-toggle { display: inline-flex; overflow: hidden; border-radius: 3px; line-height: 35px; border: 1px solid #eee; }
|
||
|
|
||
|
.switch-toggle input[type=radio] { position: absolute; visibility: hidden; display: none; }
|
||
|
|
||
|
.switch-toggle label { display: inline-block; cursor: pointer; padding: 0 15px; margin: 0; white-space: nowrap; color: inherit; transition: background-color 0.5s ease; }
|
||
|
|
||
|
.switch-toggle input.highlight:checked + label { background: #333; color: #fff; }
|
||
|
|
||
|
.switch-toggle input:checked + label { color: #fff; background: #999; }
|
||
|
|
||
|
/* Signature Pad */
|
||
|
.signature-pad { position: relative; display: flex; flex-direction: column; font-size: 10px; width: 100%; height: 100%; max-width: 700px; max-height: 460px; border: 1px solid #f0f0f0; background-color: #fff; padding: 16px; }
|
||
|
|
||
|
.signature-pad--body { position: relative; flex: 1; border: 1px solid #f6f6f6; min-height: 100px; }
|
||
|
|
||
|
.signature-pad--body canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 4px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset; }
|
||
|
|
||
|
.signature-pad--footer { color: #C3C3C3; text-align: center; font-size: 1.2em; }
|
||
|
|
||
|
.signature-pad--actions { display: flex; justify-content: space-between; margin-top: 8px; }
|
||
|
|
||
|
[data-grav-field="array"] .form-row { display: flex; align-items: center; margin-bottom: 0.5rem; }
|
||
|
|
||
|
[data-grav-field="array"] .form-row > input, [data-grav-field="array"] .form-row > textarea { margin: 0 0.5rem; display: inline-block; }
|
||
|
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1zdHlsZXMuY3NzIiwic291cmNlcyI6WyJmb3JtLXN0eWxlcy5zY3NzIl0sInNvdXJjZXNDb250ZW50IjpbIiRmb3JtLWJvcmRlci1jb2xvcjogI2VlZTtcbiRmb3JtLWFjdGl2ZS1jb2xvcjogIzAwMDtcblxuLmZvcm0tZ3JvdXAuaGFzLWVycm9ycyB7XG4gICAgYmFja2dyb3VuZDogcmdiYSgyNTUsMCwwLDAuMDUpO1xuICAgIGJvcmRlcjogMXB4IHNvbGlkIHJnYmEoMjU1LDAsMCwwLjIpO1xuICAgIGJvcmRlci1yYWRpdXM6IDNweDtcbiAgICBtYXJnaW46IDAgLTVweDtcbiAgICBwYWRkaW5nOiAwIDVweDtcbn1cblxuLmZvcm0tZXJyb3JzIHtcbiAgICBjb2xvcjogI2I1MmIyNztcbn1cblxuLmZvcm0taG9uZXliZWFyIHtcbiAgICB2aXNpYmlsaXR5OiBoaWRkZW47XG4gICAgcG9zaXRpb246IGFic29sdXRlICFpbXBvcnRhbnQ7XG4gICAgaGVpZ2h0OiAxcHg7XG4gICAgd2lkdGg6IDFweDtcbiAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgIGNsaXA6IHJlY3QoMXB4LCAxcHgsIDFweCwgMXB4KTtcbn1cblxuLmZvcm0tZXJyb3JzIHAge1xuICAgIG1hcmdpbjogMDtcbn1cblxuLmZvcm0taW5wdXQtZmlsZSB7XG5cbiAgICBpbnB1dCB7XG4gICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgfVxuXG4gICAgLmR6LWRlZmF1bHQuZHotbWVzc2FnZSB7XG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICBsZWZ0OiAwO1xuICAgICAgICByaWdodDogMDtcbiAgICAgICAgdG9wOiA1MCU7XG4gICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgtNTAlKTtcbiAgICAgICAgbWFyZ2luOiAwO1xuICAgIH1cblxuICAgICYuZHJvcHpvbmUge1xuICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICAgIG1pbi1oZWlnaHQ6IDcwcHg7XG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDNweDtcbiAgICAgICAgbWFyZ2luLWJvdHRvbTogLjg1cmVtO1xuICAgICAgICBib3JkZXI6IDJweCBkYXNoZWQgI2NjYztcbiAgICAgICAgY29sb3I6ICNhYWE7XG4gICAgICAgIHBhZGRpbmc6IDAuNXJlbTtcblxuICAgICAgICAuZHotcHJldmlldyB7XG4gICAgICAgICAgICBtYXJnaW46IDAuNXJlbTtcblxuICAgICAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgICAgICAgei1pbmRleDogMjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgLmR6LWVycm9yLW1lc3NhZ2Uge1xuICAgICAgICAgICAgICAgIG1pbi13aWR0aDogMTQwcHg7XG4gICAgICAgICAgICAgICAgd2lkdGg6IGF1dG87XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC5kei1pbWFnZSxcbiAgICAgICAgICAgICYuZHotZmlsZS1wcmV2aWV3IC5kei1pbWFnZSB7XG4gICAgICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogM3B4O1xuICAgICAgICAgICAgICAgIHotaW5kZXg6IDE7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG5cblxuXG4vLyBOZXcgSlMgcG93ZXJlZCB0YWJzXG4uZm9ybS10YWJzIHtcblxuICAgIC50YWJzLW5hdiB7XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIHBhZGRpbmctdG9wOiAxcHg7XG5cbiAgICAgICAgbWFyZ2luLWJvdHRvbTogLTFweDtcblxuICAgICAgICBhIHtcbiAgICAgICAgICAgIGZsZXg6IDE7XG4gICAgICAgICAgICB0cmFuc2l0aW9uOiBjb2xvciAwLjVzIGVhc2UsIGJhY2tncm91bmQgMC41cyBlYXNlO1xuICAgICAgICAgICAgY3Vyc29yOiBwb2ludGVyO1xuICAgICAgICAgICAgdGV4dC1hbGlnbjpjZW50ZXI7XG4gICAgICAgICAgICBwYWRkaW5nOiAxMHB4O1xuICAgICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAkZm9ybS1ib3JkZXItY29sb3I7XG4gICAgICAgICAgICBib3JkZXItcmFkaXVzOiA1cHggNXB4IDAgMDtcblxuICAgICAgICAgICAgJi5hY3RpdmUge1xuICAgICAgICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICRmb3JtLWJvcmRlci1jb2xvcjtcbiAgICAgICAgICAgICAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgdHJhbnNwYXJlbnQ7XG4gICAgICAgICAgICAgICAgbWFyZ2luOiAwIC0xcHg7XG5cbiAgICAgICAgICAgICAgICBzcGFuIHtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6ICRmb3JtLWFjdGl2ZS1jb2xvcjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBzcGFuIHtcbiAgICAgICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICAgICAgICAgIGxpbmUtaGVpZ2h0OiAxLjE7XG4gICAgICAgIH1cblxuICAgIH1cblxuICAgICYuc3VidGxlIC50YWJzLW5hdiB7XG4gICAgICAgIG1hcmdpbi1yaWdodDogMCAhaW1wb3J0YW50O1xuICAgIH1cblxuICAgIC50YWJzLWNvbnRlbnQge1xuXG4gICAgICAgIC50YWJfX2NvbnRlbnQge1xuICAgICAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgICAgICAgIHBhZGRpbmctdG9wOiAycmVtO1xuXG4gICAgICAgICAgICAmLmFjdGl2ZSB7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG5cbi8vIENoZWNrYm94ZXNcbi5jaGVja2JveGVzIHtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG5cbiAgICBsYWJlbCB7XG4gICAgICAgIGRpc3BsYXk6IGlubGluZTtcbiAgICAgICAgY3Vyc29yOiBwb2ludGVyO1xuICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICAgIHBhZGRpbmc6IDAgMCAwIDIwcHg7XG4gICAgICAgIG1hcmdpbi1yaWdodDogMTVweDtcblxuICAgIH1cbiAgICBsYWJlbDpiZWZvcmUge1xuICAgICAgICBjb250ZW50OlwiXCI7XG4gICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICAgICAgd2lkdGg6IDIwcHg7XG4gICAgICAgIGhl
|