diff --git a/backend/static/styles/styles.css b/backend/static/styles/styles.css index 7f9976c4..52a194d8 100644 --- a/backend/static/styles/styles.css +++ b/backend/static/styles/styles.css @@ -297,8 +297,6 @@ footer { color: #dd0000; } .pure-form label { font-weight: bold; } - .pure-form input { - width: 100%; } .pure-form textarea { width: 100%; } @@ -307,7 +305,7 @@ footer { max-width: 95%; } .edit-form { padding: 0.5em; - margin: 0.5em; } + margin: 0; } #nav-menu { overflow-x: scroll; } } @@ -354,3 +352,12 @@ and also iPads specifically. background-color: #eee; } .watch-table.pure-table-striped tr:nth-child(2n-1) td { background-color: inherit; } } + +/** Desktop vs mobile input field strategy +- We dont use 'size' with because `size` is too unreliable to override, and will often push-out +- Rely always on width in CSS +*/ +@media only screen and (min-width: 761px) { + /* m-d is medium-desktop */ + .m-d { + min-width: 80%; } } diff --git a/backend/static/styles/styles.scss b/backend/static/styles/styles.scss index b7fd1e34..78565076 100644 --- a/backend/static/styles/styles.scss +++ b/backend/static/styles/styles.scss @@ -401,10 +401,6 @@ footer { font-weight: bold; } - input { - width: 100%; - } - textarea { width: 100%; } @@ -416,7 +412,7 @@ footer { } .edit-form { padding: 0.5em; - margin: 0.5em; + margin: 0; } #nav-menu { overflow-x: scroll; @@ -429,8 +425,7 @@ Max width before this PARTICULAR table gets nasty This query will take effect for any screen smaller than 760px and also iPads specifically. */ -@media only screen and (max-width: 760px), -(min-device-width: 768px) and (max-device-width: 1024px) { +@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { .watch-table { /* Force table to not be like tables anymore */ @@ -496,3 +491,15 @@ and also iPads specifically. } } + +/** Desktop vs mobile input field strategy +- We dont use 'size' with because `size` is too unreliable to override, and will often push-out +- Rely always on width in CSS +*/ +@media only screen and (min-width: 761px) { +/* m-d is medium-desktop */ + .m-d { + min-width: 80%; + } +} + diff --git a/backend/templates/edit.html b/backend/templates/edit.html index 59ce2dc9..77ee233f 100644 --- a/backend/templates/edit.html +++ b/backend/templates/edit.html @@ -5,16 +5,16 @@