mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Make RichTextInput position: relative
This commit is contained in:
parent
bf9f6650cb
commit
3aba3772aa
2 changed files with 8 additions and 1 deletions
|
@ -8,12 +8,15 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.field-description {
|
.field-description {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
cursor: text;
|
cursor: text;
|
||||||
/* same as in ContentEditable */
|
/* same as in ContentEditable */
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
/* stay a on single line */
|
/* stay a on single line */
|
||||||
position: absolute;
|
|
||||||
max-width: 95%;
|
max-width: 95%;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
|
@ -208,6 +208,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.rich-text-input {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue