Redo clipboard.html css to auto grid instead of specifying each.

This commit is contained in:
voussoir 2019-08-26 15:15:02 -07:00
parent 5a1e4474a9
commit 14500080c8

View file

@ -24,35 +24,37 @@
} }
#right #right
{ {
grid-row-gap: 8px;
grid-template: grid-template:
"add_tag_area" "toolbox" auto
"remove_tag_area" "message_area" 1fr
"refresh_metadata_area" / 1fr;
"searchhidden_area" }
"download_zip_area" #toolbox
"message_area" 1fr; {
display: grid;
grid-auto-rows: min-content;
grid-row-gap: 8px; grid-row-gap: 8px;
} }
#right > * #toolbox > *
{ {
display: flex; display: flex;
} }
#right input #toolbox input
{ {
margin: 0; margin: 0;
} }
#right .spinner_holder #toolbox .spinner_holder
{ {
display: flex; display: flex;
flex: 1; flex: 1;
} }
#right button #toolbox button
{ {
flex: 1; flex: 1;
} }
#add_tag_area { grid-area: add_tag_area; } #toolbox { grid-area: toolbox; }
#remove_tag_area { grid-area: remove_tag_area; } #message_area { grid-area: message_area; }
#add_tag_area input, #add_tag_area input,
#remove_tag_area input #remove_tag_area input
{ {
@ -64,20 +66,14 @@
flex: initial; flex: initial;
} }
#refresh_metadata_area { grid-area: refresh_metadata_area; }
#searchhidden_area { grid-area: searchhidden_area; }
#download_zip_area { grid-area: download_zip_area; }
#message_area
{
grid-area: message_area;
}
@media screen and (max-width: 800px) @media screen and (max-width: 800px)
{ {
#content_body #content_body
{ {
grid-template: grid-template:
"left" 1fr "left" 1fr
"right" 200px; "right" 200px
/ 1fr !important;
} }
#right #right
{ {
@ -89,12 +85,7 @@
height: 200px; height: 200px;
grid-template: grid-template:
"add_tag_area message_area" "toolbox message_area" 1fr
"remove_tag_area message_area"
"refresh_metadata_area message_area"
"searchhidden_area message_area"
"download_zip_area message_area"
"extra message_area" 1fr
/1fr minmax(50px, 200px); /1fr minmax(50px, 200px);
} }
} }
@ -114,6 +105,7 @@
</div> </div>
</div> </div>
<div id="right"> <div id="right">
<div id="toolbox">
<div id="add_tag_area"> <div id="add_tag_area">
<input type="text" id="add_tag_textbox" list="tag_autocomplete_datalist"> <input type="text" id="add_tag_textbox" list="tag_autocomplete_datalist">
<button class="add_tag_button green_button" id="add_tag_button" onclick="add_tag_form();">Add tag</button> <button class="add_tag_button green_button" id="add_tag_button" onclick="add_tag_form();">Add tag</button>
@ -136,6 +128,7 @@
<div id="download_zip_area"> <div id="download_zip_area">
<button class="yellow_button" id="download_zip_button" onclick="download_zip_form()">Download .zip</button> <button class="yellow_button" id="download_zip_button" onclick="download_zip_form()">Download .zip</button>
</div> </div>
</div>
<div id="message_area"> <div id="message_area">
</div> </div>