add some media queries to improve main UI on small-width devices

This commit is contained in:
Andrew Dolgov 2021-03-11 19:26:19 +03:00
parent a4da2f1e62
commit f67d2623b7
10 changed files with 137 additions and 8 deletions

View File

@ -197,7 +197,7 @@
?> ?>
</select> </select>
<div dojoType="fox.form.ComboButton" onclick="Feeds.catchupCurrent()"> <div class="catchup-button" dojoType="fox.form.ComboButton" onclick="Feeds.catchupCurrent()">
<span><?= __('Mark as read') ?></span> <span><?= __('Mark as read') ?></span>
<div dojoType="dijit.DropDownMenu"> <div dojoType="dijit.DropDownMenu">
<div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('1day')"> <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('1day')">

View File

@ -624,7 +624,7 @@ const Headlines = {
</span> </span>
<span class='right'> <span class='right'>
<span id='selected_prompt'></span> <span id='selected_prompt'></span>
<div dojoType='fox.form.DropDownButton' title='"${__('Select articles')}'> <div class='select-articles-dropdown' dojoType='fox.form.DropDownButton' title='"${__('Select articles')}'>
<span>${__("Select...")}</span> <span>${__("Select...")}</span>
<div dojoType='dijit.Menu' style='display: none;'> <div dojoType='dijit.Menu' style='display: none;'>
<div dojoType='dijit.MenuItem' onclick='Headlines.select("all")'>${__('All')}</div> <div dojoType='dijit.MenuItem' onclick='Headlines.select("all")'>${__('All')}</div>

View File

@ -766,6 +766,12 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px; margin-left: 4px;
} }
@media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left i.icon-syndicate {
display: none;
}
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {
display: flex; display: flex;
align-items: center; align-items: center;
@ -780,11 +786,17 @@ body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
margin-right: 4px; margin-right: 4px;
color: #257aa7; color: #257aa7;
} }
@media (max-width: 992px) { @media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #selected_prompt { body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
display: none; display: none;
} }
} }
@media (max-width: 576px) {
body.ttrss_main #toolbar-frame #toolbar .select-articles-dropdown,
body.ttrss_main #toolbar-frame #toolbar .catchup-button {
display: none;
}
}
body.ttrss_main #header { body.ttrss_main #header {
text-align: right; text-align: right;
color: #555; color: #555;
@ -1557,6 +1569,14 @@ body.ttrss_prefs ul.prefs-plugin-list li label.checkbox .name {
text-align: right; text-align: right;
font-weight: bold; font-weight: bold;
} }
@media (max-width: 992px) {
body.ttrss_prefs ul.prefs-plugin-list li label.checkbox {
min-width: 200px ! important;
}
body.ttrss_prefs ul.prefs-plugin-list li .version {
display: none;
}
}
body.ttrss_prefs ul.prefs-plugin-list li .actions { body.ttrss_prefs ul.prefs-plugin-list li .actions {
flex-grow: 2; flex-grow: 2;
text-align: right; text-align: right;

View File

@ -766,6 +766,12 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px; margin-left: 4px;
} }
@media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left i.icon-syndicate {
display: none;
}
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {
display: flex; display: flex;
align-items: center; align-items: center;
@ -780,11 +786,17 @@ body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
margin-right: 4px; margin-right: 4px;
color: #b87d2c; color: #b87d2c;
} }
@media (max-width: 992px) { @media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #selected_prompt { body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
display: none; display: none;
} }
} }
@media (max-width: 576px) {
body.ttrss_main #toolbar-frame #toolbar .select-articles-dropdown,
body.ttrss_main #toolbar-frame #toolbar .catchup-button {
display: none;
}
}
body.ttrss_main #header { body.ttrss_main #header {
text-align: right; text-align: right;
color: #ccc; color: #ccc;
@ -1557,6 +1569,14 @@ body.ttrss_prefs ul.prefs-plugin-list li label.checkbox .name {
text-align: right; text-align: right;
font-weight: bold; font-weight: bold;
} }
@media (max-width: 992px) {
body.ttrss_prefs ul.prefs-plugin-list li label.checkbox {
min-width: 200px ! important;
}
body.ttrss_prefs ul.prefs-plugin-list li .version {
display: none;
}
}
body.ttrss_prefs ul.prefs-plugin-list li .actions { body.ttrss_prefs ul.prefs-plugin-list li .actions {
flex-grow: 2; flex-grow: 2;
text-align: right; text-align: right;

View File

@ -766,6 +766,12 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px; margin-left: 4px;
} }
@media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left i.icon-syndicate {
display: none;
}
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {
display: flex; display: flex;
align-items: center; align-items: center;
@ -780,11 +786,17 @@ body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
margin-right: 4px; margin-right: 4px;
color: #257aa7; color: #257aa7;
} }
@media (max-width: 992px) { @media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #selected_prompt { body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
display: none; display: none;
} }
} }
@media (max-width: 576px) {
body.ttrss_main #toolbar-frame #toolbar .select-articles-dropdown,
body.ttrss_main #toolbar-frame #toolbar .catchup-button {
display: none;
}
}
body.ttrss_main #header { body.ttrss_main #header {
text-align: right; text-align: right;
color: #555; color: #555;
@ -1557,6 +1569,14 @@ body.ttrss_prefs ul.prefs-plugin-list li label.checkbox .name {
text-align: right; text-align: right;
font-weight: bold; font-weight: bold;
} }
@media (max-width: 992px) {
body.ttrss_prefs ul.prefs-plugin-list li label.checkbox {
min-width: 200px ! important;
}
body.ttrss_prefs ul.prefs-plugin-list li .version {
display: none;
}
}
body.ttrss_prefs ul.prefs-plugin-list li .actions { body.ttrss_prefs ul.prefs-plugin-list li .actions {
flex-grow: 2; flex-grow: 2;
text-align: right; text-align: right;

View File

@ -24,6 +24,11 @@
@font-size-toolbar: 13px; @font-size-toolbar: 13px;
@font-size-content: 14px; @font-size-content: 14px;
@breakpoint-sm: 576px;
@breakpoint-md: 768px;
@breakpoint-lg: 992px;
@breakpoint-xl: 1200px;
@embed-responsive-padding: 56.25%; // Use 56.25% for 16:9 aspect ratio, 75% for 4:3. @embed-responsive-padding: 56.25%; // Use 56.25% for 16:9 aspect ratio, 75% for 4:3.
body.ttrss_main, body.ttrss_main,

View File

@ -155,6 +155,16 @@ body.ttrss_prefs {
} }
} }
@media (max-width: @breakpoint-lg) {
label.checkbox {
min-width : 200px ! important;
}
.version {
display : none;
}
}
.actions { .actions {
flex-grow : 2; flex-grow : 2;
text-align: right; text-align: right;

View File

@ -887,6 +887,12 @@ body.ttrss_main {
.feed_title, .cancel_search { .feed_title, .cancel_search {
margin-left : 4px; margin-left : 4px;
} }
@media (max-width: @breakpoint-md) {
.feed_title, i.icon-syndicate {
display : none;
}
}
} }
.right { .right {
@ -907,11 +913,19 @@ body.ttrss_main {
color : @color-accent; color : @color-accent;
} }
@media (max-width: 992px) { @media (max-width: @breakpoint-md) {
#selected_prompt { #selected_prompt {
display : none; display : none;
} }
} }
@media (max-width: @breakpoint-sm) {
.select-articles-dropdown,
.catchup-button {
display : none;
}
}
} }
} }

View File

@ -767,6 +767,12 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px; margin-left: 4px;
} }
@media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left i.icon-syndicate {
display: none;
}
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {
display: flex; display: flex;
align-items: center; align-items: center;
@ -781,11 +787,17 @@ body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
margin-right: 4px; margin-right: 4px;
color: #b87d2c; color: #b87d2c;
} }
@media (max-width: 992px) { @media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #selected_prompt { body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
display: none; display: none;
} }
} }
@media (max-width: 576px) {
body.ttrss_main #toolbar-frame #toolbar .select-articles-dropdown,
body.ttrss_main #toolbar-frame #toolbar .catchup-button {
display: none;
}
}
body.ttrss_main #header { body.ttrss_main #header {
text-align: right; text-align: right;
color: #ccc; color: #ccc;
@ -1558,6 +1570,14 @@ body.ttrss_prefs ul.prefs-plugin-list li label.checkbox .name {
text-align: right; text-align: right;
font-weight: bold; font-weight: bold;
} }
@media (max-width: 992px) {
body.ttrss_prefs ul.prefs-plugin-list li label.checkbox {
min-width: 200px ! important;
}
body.ttrss_prefs ul.prefs-plugin-list li .version {
display: none;
}
}
body.ttrss_prefs ul.prefs-plugin-list li .actions { body.ttrss_prefs ul.prefs-plugin-list li .actions {
flex-grow: 2; flex-grow: 2;
text-align: right; text-align: right;

View File

@ -767,6 +767,12 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px; margin-left: 4px;
} }
@media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left i.icon-syndicate {
display: none;
}
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right { body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {
display: flex; display: flex;
align-items: center; align-items: center;
@ -781,11 +787,17 @@ body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
margin-right: 4px; margin-right: 4px;
color: #257aa7; color: #257aa7;
} }
@media (max-width: 992px) { @media (max-width: 768px) {
body.ttrss_main #toolbar-frame #toolbar #selected_prompt { body.ttrss_main #toolbar-frame #toolbar #selected_prompt {
display: none; display: none;
} }
} }
@media (max-width: 576px) {
body.ttrss_main #toolbar-frame #toolbar .select-articles-dropdown,
body.ttrss_main #toolbar-frame #toolbar .catchup-button {
display: none;
}
}
body.ttrss_main #header { body.ttrss_main #header {
text-align: right; text-align: right;
color: #ccc; color: #ccc;
@ -1558,6 +1570,14 @@ body.ttrss_prefs ul.prefs-plugin-list li label.checkbox .name {
text-align: right; text-align: right;
font-weight: bold; font-weight: bold;
} }
@media (max-width: 992px) {
body.ttrss_prefs ul.prefs-plugin-list li label.checkbox {
min-width: 200px ! important;
}
body.ttrss_prefs ul.prefs-plugin-list li .version {
display: none;
}
}
body.ttrss_prefs ul.prefs-plugin-list li .actions { body.ttrss_prefs ul.prefs-plugin-list li .actions {
flex-grow: 2; flex-grow: 2;
text-align: right; text-align: right;