etiquette/frontends/etiquette_flask/static/css/common.css

158 lines
2.5 KiB
CSS
Raw Normal View History

2017-03-31 02:34:39 +00:00
/*
Organization:
{
display and flexing
positioning and alignment
2017-03-31 02:34:39 +00:00
bounding box (width, margin, overflow, ...)
borders and shadows
backgrounds
foregrounds
misc
}
*/
:root
{
--color_site_theme: #00d8f4;
--color_3d_shadow: rgba(0, 0, 0, 0.5);
--color_3d_highlight: rgba(255, 255, 255, 0.5);
}
2016-09-18 08:33:46 +00:00
body
{
display: flex;
flex-direction: column;
2017-03-31 02:34:39 +00:00
background-color: var(--color_site_theme);
2016-09-18 08:33:46 +00:00
}
#header
{
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr auto;
grid-template-rows: auto;
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;
}
.editor_input
{
width: 100%;
max-width: 800px;
}
.hidden
{
display: none !important;
}
2016-09-18 08:33:46 +00:00
#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;
}
.green_button
2016-09-18 08:33:46 +00:00
{
background-color: #6df16f;
}
.red_button
{
background-color: #ff4949;
}
.yellow_button
{
background-color: #ffea57;
}
.green_button,
.red_button,
.yellow_button
{
border-top: 2px solid var(--color_3d_highlight);
border-left: 2px solid var(--color_3d_highlight);
border-right: 2px solid var(--color_3d_shadow);
border-bottom: 2px solid var(--color_3d_shadow);
}
.green_button:active,
.red_button:active,
.yellow_button:active
{
border-top: 2px solid var(--color_3d_shadow);
border-left: 2px solid var(--color_3d_shadow);
border-right: 2px solid var(--color_3d_highlight);
border-bottom: 2px solid var(--color_3d_highlight);
}
2016-09-18 08:33:46 +00:00
.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
}
/*
The Remove button will be display:none by default, but is shown when the tag
is hovered over.
*/
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;
}
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
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
}