etiquette/static/common.css

256 lines
4.4 KiB
CSS
Raw Normal View History

2017-03-31 02:34:39 +00:00
/*
Organization:
{
display and alignment
bounding box (width, margin, overflow, ...)
borders and shadows
backgrounds
foregrounds
misc
}
*/
2016-09-18 08:33:46 +00:00
body
{
display: flex;
flex-direction: column;
2017-03-31 02:34:39 +00:00
2016-09-18 08:33:46 +00:00
margin: 8px;
2017-03-31 02:34:39 +00:00
background-color:#00d8f4;
2016-09-18 08:33:46 +00:00
}
li
{
position:relative;
}
#header
{
display: flex;
flex-direction: row;
justify-content: center;
align-content: center;
2017-03-31 02:34:39 +00:00
2016-09-18 08:33:46 +00:00
margin-bottom: 4px;
}
.header_element
{
display: flex;
flex: 1;
2017-03-31 02:34:39 +00:00
justify-content: center;
2016-09-18 08:33:46 +00:00
background-color: rgba(0, 0, 0, 0.1);
}
.header_element:hover
{
background-color: #ffffd4;
}
#content_body
{
display: flex;
2017-03-31 02:34:39 +00:00
flex: 0 0 auto;
2016-09-18 08:33:46 +00:00
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;*/
2016-09-18 08:33:46 +00:00
top: 3px;
2017-03-31 02:34:39 +00:00
vertical-align: middle;
2016-09-18 08:33:46 +00:00
width: 18px;
height: 14px;
padding: 0;
2017-03-31 02:34:39 +00:00
2016-09-18 08:33:46 +00:00
border-top: 2px solid #ffacac;
border-left: 2px solid #ffacac;
border-right: 2px solid #bd1b1b;
border-bottom: 2px solid #bd1b1b;
2017-03-31 02:34:39 +00:00
background-color: #ff4949;
2016-09-18 08:33:46 +00:00
}
.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;
}
2016-11-07 02:00:30 +00:00
.photo_card_list
{
display: flex;
flex-direction: row;
justify-content: space-between;
2017-03-31 02:34:39 +00:00
margin: 8px;
padding: 4px;
background-color: #ffffd4;
2016-11-07 02:00:30 +00:00
}
.photo_card_grid
2016-09-18 08:33:46 +00:00
{
display: inline-flex;
flex-direction: column;
2017-03-31 02:34:39 +00:00
vertical-align: middle;
2016-09-18 08:33:46 +00:00
min-width: 150px;
max-width: 300px;
height: 200px;
padding: 8px;
margin: 8px;
2017-03-31 02:34:39 +00:00
2016-09-18 08:33:46 +00:00
border-radius: 8px;
2017-03-31 02:34:39 +00:00
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
background-color: #ffffd4;
2016-09-18 08:33:46 +00:00
}
2016-11-07 02:00:30 +00:00
.photo_card_grid_thumb
2016-09-18 08:33:46 +00:00
{
display:flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 150px;
}
2016-11-07 02:00:30 +00:00
.photo_card_grid_thumb a
2016-09-18 08:33:46 +00:00
{
display:flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
2016-09-18 08:33:46 +00:00
}
2016-11-07 02:00:30 +00:00
.photo_card_grid_thumb img
2016-09-18 08:33:46 +00:00
{
max-width: 100%;
max-height: 100%;
height: auto;
}
2016-11-07 02:00:30 +00:00
.photo_card_grid_info
2016-09-18 08:33:46 +00:00
{
display: flex;
flex: 1;
flex-direction: column;
justify-content: space-between;
2017-03-31 02:34:39 +00:00
background-color: inherit;
2017-03-31 02:34:39 +00:00
font-size: 12.8px;
}
.photo_card_grid_filename
{
align-self: flex-start;
/*
The width of photo cards should be based on the aspect ratio of the
thumbnail image. Previously, I had problems where the card would be wider
than necessary because the file had a long name.
These min-width:100% + width:0 prevent the info div from controlling
2017-03-31 02:34:39 +00:00
card size, so we can prioritize the thumbnail instead.
*/
min-width: 100%;
width: 0;
2017-03-31 02:34:39 +00:00
overflow: hidden;
z-index: 1;
max-height: 30px;
background-color: inherit;
word-break:break-word;
2016-09-18 08:33:46 +00:00
}
.photo_card_grid_filename a
{
background-color: inherit;
}
.photo_card_grid_filename:hover
{
overflow: visible;
}
.photo_card_grid_file_metadata
{
display: flex;
z-index: 0;
2017-03-31 02:34:39 +00:00
justify-content: space-between;
font-family: monospace;
font-size: 11px;
}
2016-11-07 02:00:30 +00:00
.photo_card_grid_tags
2016-10-10 03:50:13 +00:00
{
align-self: flex-start;
/*
When the metadata is long it tends to squish against the T, so give it
some breathing room.
*/
margin-right: 8px;
2016-10-10 03:50:13 +00:00
}
2016-09-18 08:33:46 +00:00
.tag_object
{
border-radius: 2px;
2017-03-31 02:34:39 +00:00
background-color: #fff;
font-size: 0.9em;
2016-09-18 08:33:46 +00:00
text-decoration: none;
font-family: monospace;
line-height: 1.3;
}
#message_area
{
display: flex;
2017-03-31 02:34:39 +00:00
flex: 2;
flex-direction: column;
align-items: center;
2017-03-31 02:34:39 +00:00
max-height: 300px;
width: 100%;
height: 100%;
overflow-y: auto;
background-color: rgba(0, 0, 0, 0.1);
}
.message_bubble
2016-09-18 08:33:46 +00:00
{
width: 80%;
margin: 4px;
2017-03-31 02:34:39 +00:00
word-wrap: break-word;
2016-09-18 08:33:46 +00:00
}
.message_positive
2016-09-18 08:33:46 +00:00
{
background-color: #afa;
}
.message_negative
2016-09-18 08:33:46 +00:00
{
background-color: #faa;
2016-11-07 02:00:30 +00:00
}