/*
CSS
Content panels for Grammalecte
*/
div.grammalecte_panel {
all: initial;
padding: 0;
margin: 0;
position: fixed;
box-sizing: content-box;
z-index: 2147483641; /* maximum is 2147483647: https://stackoverflow.com/questions/491052/minimum-and-maximum-value-of-z-index */
border: 2px solid hsl(210, 50%, 50%);
border-radius: 10px 10px 10px 10px;
background-color: hsl(210, 0%, 100%);
color: hsl(0, 0%, 0%);
font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
box-shadow: 0 0 1px 6px hsla(210, 50%, 50%, .5);
line-height: normal;
text-shadow: none;
text-decoration: none;
text-align: left;
hyphens: none;
}
div.grammalecte_panel img {
display: inline-block;
margin: 0;
padding: 0;
}
div.grammalecte_panel_bar {
position: sticky;
width: 100%;
background-color: hsl(210, 50%, 50%);
border-radius: 10px 10px 0 0;
border-bottom: 1px solid hsl(210, 20%, 86%);
}
div.grammalecte_panel_title {
padding: 3px 20px;
color: hsl(210, 30%, 96%);
font-size: 20px;
}
div.grammalecte_panel_label {
display: inline-block;
padding: 0 10px;
font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
}
div.grammalecte_panel_invisible_marker {
position: absolute;
/*visibility: hidden;*/
font-size: 4px;
color: hsla(210, 0%, 90%, 0);
}
div.grammalecte_panel_commands {
float: right;
}
div.grammalecte_copy_button {
display: inline-block;
padding: 1px 10px;
border-radius: 0 0 0 3px;
font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
font-size: 14px;
font-weight: bold;
color: hsla(150, 0%, 100%, .5);
text-align: center;
cursor: pointer;
}
div.grammalecte_copy_button:hover {
background-color: hsl(150, 90%, 35%);
color: hsla(150, 0%, 100%, 1);
}
div.grammalecte_move_button {
display: inline-block;
padding: 1px 5px;
font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
font-size: 14px;
font-weight: bold;
color: hsla(180, 0%, 100%, .5);
text-align: center;
cursor: pointer;
}
div.grammalecte_move_button:hover {
background-color: hsl(180, 80%, 65%);
color: hsla(180, 0%, 100%, 1);
}
div.grammalecte_close_button {
display: inline-block;
padding: 1px 10px;
border-radius: 0 8px 0 0;
background-color: hsla(0, 80%, 50%, .5);
font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
font-size: 14px;
font-weight: bold;
color: hsla(210, 0%, 100%, .5);
text-align: center;
cursor: pointer;
}
div.grammalecte_close_button:hover {
background-color: hsl(0, 100%, 60%);
color: hsla(210, 0%, 100%, 1);
}
div.grammalecte_panel_menu {
display: flex;
flex-direction: row;
justify-content: space-around;
}
div.grammalecte_menu_button {
color: hsl(210, 50%, 96%);
padding: 5px 10px;
font-size: 12px;
font-variant: small-caps;
cursor: pointer;
border-radius: 3px;
}
div.grammalecte_menu_button:hover {
background-color: hsl(210, 80%, 40%);
}
div.grammalecte_panel_content {
position: absolute;
width: 100%;
height: calc(100% - 65px); /* panel height - title_bar */
overflow: auto;
}
div.grammalecte_panel_message {
margin: 10px;
padding: 10px;
border-radius: 5px;
background-color: hsl(0, 50%, 40%);
color: hsl(0, 50%, 96%);
font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
font-size: 16px;
}
/*
Spinner
*/
div.grammalecte_spinner {
visibility: hidden;
box-sizing: border-box;
width: 40px;
height: 40px;
position: absolute;
top: 2px;
right: 200px;
background-color: hsla(210, 100%, 30%, .1);
border: 3px solid hsla(210, 100%, 30%, .1);
border-top: 3px solid hsla(210, 100%, 50%, .8);
border-radius: 50%;
text-align: center;
cursor: pointer;
box-shadow: 0 0 0 0 hsla(210, 80%, 50%, .5);
animation: grammalecte-spin-big 2s linear infinite;
}
@keyframes grammalecte-spin-big {
0% {
transform: rotate(0deg) scale(1);
}
50% {
transform: rotate(180deg) scale(.9);
box-shadow: 0 0 0 10px hsla(210, 50%, 50%, 0);
}
100% {
transform: rotate(360deg) scale(1);
box-shadow: 0 0 0 0 hsla(210, 50%, 50%, 0);
}
}