/*
CSS
Content panels for Grammalecte
*/
/*
Wrapper
*/
.grammalecte_wrapper {
margin: 3px;
padding: 5px;
border-radius: 3px;
background-color: hsl(210, 40%, 96%);
border: 1px solid hsl(210, 40%, 92%);
box-shadow: 0 0 2px hsla(210, 40%, 0%, .5);
font-family: "Trebuchet MS", "Liberation Sans", sans-serif;
color: hsl(210, 40%, 50%);
}
.grammalecte_wrapper_button {
display: inline-block;
padding: 0 5px;
margin-left: 5px;
background-color: hsl(210, 60%, 80%);
border-radius: 2px;
border: 1px solid hsl(210, 60%, 70%);
color: hsl(210, 40%, 40%);
cursor: pointer;
}
.grammalecte_wrapper_button:hover {
background-color: hsl(210, 80%, 70%);
border: 1px solid hsl(210, 80%, 60%);
box-shadow: 0 0 1px 1px hsl(210, 80%, 80%);
color: hsl(210, 80%, 30%);
}
.grammalecte_wrapper_toolbar {
display: flex;
justify-content: flex-end;
margin-top: 5px;
padding: 5px 10px;
}
/*
Panels
*/
.grammalecte_panel {
padding: 0;
margin: 0;
position: fixed;
z-index: 100;
border: 2px solid hsl(210, 0%, 50%);
border-radius: 10px 10px 10px 10px;
background-color: hsl(210, 20%, 100%);
color: hsl(210, 10%, 4%);
font-family: "Trebuchet MS", "Liberation Sans", sans-serif;
box-shadow: 0 0 4px 2px hsl(210, 0%, 50%);
}
.grammalecte_panel_bar {
position: sticky;
width: 100%;
background-color: hsl(210, 0%, 90%);
border-radius: 10px 10px 0 0;
border-bottom: 1px solid hsl(210, 10%, 80%);
font-size: 20px;
}
.grammalecte_panel_title {
padding: 10px 20px;
}
.grammalecte_panel_label {
display: inline-block;
padding: 0 10px;
}
.grammalecte_panel_commands {
float: right;
}
.grammalecte_copy_button {
display: inline-block;
padding: 2px 10px;
background-color: hsl(150, 80%, 30%);
border-radius: 0 0 0 3px;
font-size: 22px;
font-weight: bold;
color: hsl(150, 0%, 100%);
text-align: center;
cursor: pointer;
}
.grammalecte_copy_button:hover {
background-color: hsl(150, 100%, 40%);
}
.grammalecte_move_button {
display: inline-block;
padding: 2px 5px;
background-color: hsl(180, 80%, 50%);
font-size: 22px;
font-weight: bold;
color: hsl(180, 0%, 100%);
text-align: center;
cursor: pointer;
}
.grammalecte_move_button:hover {
background-color: hsl(180, 100%, 60%);
}
.grammalecte_close_button {
display: inline-block;
padding: 2px 10px;
border-radius: 0 8px 0 0;
background-color: hsl(0, 80%, 50%);
font-size: 22px;
font-weight: bold;
color: hsl(210, 0%, 100%);
text-align: center;
cursor: pointer;
}
.grammalecte_close_button:hover {
background-color: hsl(0, 100%, 60%);
}
.grammalecte_panel_content {
height: calc(100% - 55px); /* panel height - title_bar */
overflow: auto;
}
/*
CSS Spinner
Double bounce
http://tobiasahlin.com/spinkit/
*/
.grammalecte_spinner {
visibility: hidden;
width: 40px;
height: 40px;
position: absolute;
top: 2px;
right: 180px;
}
.grammalecte_spinner .bounce1,
.grammalecte_spinner .bounce2 {
width: 100%;
height: 100%;
border-radius: 50%;
background-color: hsl(0, 50%, 75%);
opacity: 0.6;
position: absolute;
top: 0;
left: 0;
animation: grammalecte-sk-bounce 2.0s infinite ease-in-out;
}
.grammalecte_spinner .bounce2 {
animation-delay: -1.0s;
}
@keyframes grammalecte-sk-bounce {
0%, 100% {
transform: scale(0.0);
} 50% {
transform: scale(1.0);
}
}