etiquette/static/common.css
Ethan Dalool c80e2003ff checkpoint
add photo and search css for narrow screens; incorporate new expressionmatch kit; entry_with_history cursor moves to end; albums indicate total filesize; etc
2017-02-24 22:07:59 -08:00

198 lines
3.6 KiB
CSS

body
{
display: flex;
flex-direction: column;
background-color:#00d8f4;
margin: 8px;
}
li
{
position:relative;
}
#header
{
display: flex;
flex-direction: row;
justify-content: center;
align-content: center;
margin-bottom: 4px;
}
.header_element
{
display: flex;
justify-content: center;
flex: 1;
background-color: rgba(0, 0, 0, 0.1);
}
.header_element:hover
{
background-color: #ffffd4;
}
#content_body
{
flex: 0 0 auto;
display: flex;
flex-direction: row;
}
.add_tag_button, #search_go_button
{
border-top: 2px solid #c2ffc3;
border-left: 2px solid #c2ffc3;
border-right: 2px solid #259427;
border-bottom: 2px solid #259427;
background-color: #6df16f;
}
.add_tag_button:active, #search_go_button:active
{
border-top: 2px solid #259427;
border-left: 2px solid #259427;
border-right: 2px solid #c2ffc3;
border-bottom: 2px solid #c2ffc3;
}
.remove_tag_button,
.remove_tag_button_perm
{
position: absolute;
top: 3px;
width: 18px;
height: 14px;
padding: 0;
vertical-align: middle;
background-color: #ff4949;
border-top: 2px solid #ffacac;
border-left: 2px solid #ffacac;
border-right: 2px solid #bd1b1b;
border-bottom: 2px solid #bd1b1b;
}
.remove_tag_button
{
display: none;
}
.tag_object:hover + .remove_tag_button,
.remove_tag_button:hover,
.remove_tag_button_perm:hover
{
display:inline;
}
.remove_tag_button:active,
.remove_tag_button_perm:active
{
border-top: 2px solid #bd1b1b;
border-left: 2px solid #bd1b1b;
border-right: 2px solid #ffacac;
border-bottom: 2px solid #ffacac;
}
.photo_card_list
{
background-color: #ffffd4;
display: block;
padding: 4px;
margin: 8px;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.photo_card_grid
{
display: inline-flex;
flex-direction: column;
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
min-width: 150px;
max-width: 300px;
height: 200px;
background-color: #ffffd4;
padding: 8px;
margin: 8px;
border-radius: 8px;
vertical-align: middle;
}
.photo_card_grid_thumb
{
display:flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 150px;
}
.photo_card_grid_thumb a
{
display:flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 150px;
}
.photo_card_grid_thumb img
{
max-width: 100%;
max-height: 100%;
height: auto;
}
.photo_card_grid_info
{
display: flex;
flex: 1;
justify-content: space-between;
flex-direction: column;
font-size: 0.8em;
}
.photo_card_grid_file_metadata
{
display: flex;
justify-content: space-between;
}
.photo_card_grid_filename
{
/*position: absolute;*/
max-height: 30px;
overflow: hidden;
align-self: flex-start;
word-break:break-word;
}
.photo_card_grid_filename:hover
{
overflow: visible;
}
.photo_card_grid_tags
{
align-self: flex-start;
}
.tag_object
{
font-size: 0.9em;
background-color: #fff;
border-radius: 2px;
text-decoration: none;
font-family: monospace;
line-height: 1.3;
}
#message_area
{
overflow-y: auto;
background-color: rgba(0, 0, 0, 0.1);
width: 100%;
height: 100%;
max-height: 300px;
display: flex;
flex-direction: column;
justify-content center;
align-items: center;
flex: 2;
}
.message_positive, .message_negative
{
width: 80%;
margin: 4px;
}
.message_positive
{
background-color: #afa;
}
.message_negative
{
background-color: #faa;
}