lichen-annotate-pdf
Version:
Annotation layer for pdf.js in vue fork of Aaron Leong pdf-annotate-vue
330 lines (314 loc) • 6.11 kB
CSS
#annomain * {
box-sizing: border-box;
}
body {
font-family: 'Red Hat Text', sans-serif;
}
#annomain button {
cursor: pointer;
}
#content-wrapper.eraser {
cursor: url("./assets/cursors/cursor-eraser.png"), auto;
}
#content-wrapper.text {
cursor: url("./assets/cursors/cursor-text.png"), auto;
}
#content-wrapper.draw {
cursor: url("./assets/cursors/cursor-pencil.png"), auto;
}
#content-wrapper.point {
cursor: url("./assets/cursors/cursor-comment-plus.png"), auto;
}
.spacer {
flex-grow: 1;
}
.zoom-wrapper {
/* padding: 10px 10px; */
border: solid 1px black;
background-color: black;
position: fixed;
width: 50px;
top: 80px;
right: 30px;
border-radius: 10px;
z-index: 200;
transition: all 0.15s ease-in;
display: flex;
flex-direction: column;
overflow: hidden;
}
.zoom-wrapper.fullsize {
right: 280px;
}
.zoom-wrapper.top-offset {
top: 130px;
}
.zoom-wrapper button {
/* margin: 2px; */
background-color: white;
color: black;
width: 100%;
height: 50px;
border: none;
z-index: 200;
font-size: 24px;
/* border-radius: 0 0 10px 10px; */
outline: none;
transition: all 0.15s ease-in;
}
.zoom-wrapper button:hover {
background-color: rgba(255,255,255,0.90);
}
.zoom-wrapper button:first-child {
border-bottom: solid 1px black;
}
button.close-button {
position: fixed;
top: 20px;
right: 30px;
background-color: #ff4c4c;
color: white;
border-radius: 30px;
width: 50px;
height: 50px;
border: none;
z-index: 200;
font-size: 30px;
outline: none;
transition: all 0.15s ease-in;
}
button.robot-button{
position: absolute;
top: 200px;
right: 30px;
background-color: white;
color: #5465ff;
border-radius: 10px;
width: 50px;
height: 50px;
border: none;
z-index: 200;
font-size: 30px;
outline: none;
transition: all 0.15s ease-in;
}
button.close-button.fullsize {
right: 280px;
}
.toolbar {
position: fixed;
border-radius: 10px;
background-color: rgba(0,0,0,0.85);
width: 50px;
height: 387px;
min-height: 387px;
left: unset;
right: 30px;
bottom: 20px;
display: flex;
flex-direction: column;
align-items: stretch;
transition: all 0.15s ease-in;
z-index: 200;
overflow: visible;
}
.toolbar.fullsize {
right: 280px;
}
.toolbar.bigger-toolbar {
height: 427px;
min-height: 427px;
}
.toolbar .item-spacer {
display: inline-block;
border-bottom: 1px solid #c1c1c1;
height: 1;
width: 100%;
}
.toolbar select {
/* border: none; */
}
.toolbar button .active-color{
/* width: 100%; */
height: 7px;
/* border-radius: 6px; */
background-color: red;
position: absolute;
/* bottom: -1px; */
border-top: solid 2px white;
}
.toolbar button, .toolbar a {
cursor: pointer;
background-color: transparent;
border: none;
border-radius: 0;
font-size: 24px;
padding: 3px;
margin: 0;
text-align: center;
color: white;
position: relative;
width: 100%;
min-height: 50px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
}
.toolbar button:not(:last-child), .toolbar a:not(:last-child) {
/* border-right: solid 1px rgba(255,255,255,0.55); */
}
.toolbar button:focus, .toolbar a:focus {
outline: solid 1px white;
}
.toolbar button:after, .toolbar a:after {
content: '';
display: block;
}
.toolbar button.active, .toolbar a.active {
background-color: #2196F3;
outline: none;
}
.toolbar button.active.top-button, .toolbar a.active.top-button {
border-radius: 10px 10px 0 0;
}
.toolbar button:hover::after, .toolbar a:hover::after {
content: '';
height:100%;
width: 100%;
background-color: rgba(255,255,255,0.15);
position: absolute;
top:0;
left: 0;
}
.toolbar button.pen {
}
.toolbar button.comment {
}
.toolbar button.rectangle:after {
width: 15px;
height: 15px;
border: 1px solid #2196F3;
position: absolute;
top: 4px;
left: 4px;
}
.toolbar button.circle:after {
width: 15px;
height: 15px;
border: 0px solid #2196F3;
position: absolute;
top: 4px;
left: 4px;
}
.toolbar button.highlight:after {
width: 17px;
height: 17px;
background: yellow;
position: absolute;
top: 4px;
left: 4px;
}
.toolbar button.strikeout:after {
width: 15px;
height: 1px;
background: #2196F3;
position: absolute;
top: 12px;
left: 4px;
}
.toolbar button.text:after {
}
.toolbar a.color {
display: inline-block;
height: 20px;
width: 20px;
min-width: 20px;
min-height:20px;
border-radius: 10px;
outline: none;
vertical-align: middle;
}
.toolbar a.color:focus {
}
.toolbar .fullsize-select {
border-bottom: solid 1px black;
background-color: black;
color: white;
margin:0 10px;
border: none;
}
.toolbar .tool-options {
height: 50px;
display: flex;
align-items: stretch;
background-color: #cdcdcd;
position: absolute;
bottom: calc(100% + 1px);
width: 200px;
height: 89px;
left: -1px;
border-radius: 10px 10px 0 0;
overflow: hidden;
box-shadow: 0px 5px 20px rgba(0,0,0,0.25);
pointer-events: none;
opacity: 0;
transition: all 0.15s ease-in;
}
.toolbar .tool-options.active-menu {
opacity: 1;
pointer-events: all;
}
.toolbar .tool-options select {
height: 100%;
width: 50px;
border-radius: 0;
align-self: center;
margin:0;
border: none;
}
.color-selected {
border: 3px solid #666;
width: 30px;
height: 30px;
margin-top: -1px;
margin-left: -2px;
margin-right: -2px;
}
.text-color, .pen-color, .hotspot-color {
display: flex;
justify-content: center;
align-items: center;
width: 50px;
height:30px;
min-height: 30px;
}
.hotspot-color > div {
bottom:0;
width: 105px ;
border-radius: 10px 0 0 10px;
right:100%;
}
.hotspot-color.admin-color > a {
border-radius: 0;
width: 100%;
border: solid 3px black;
border-width: 3px 3px 2px 3px;
}
.toolbar .outer-select {
background-color: white;
padding: 0 6px;
}
@media all and (max-height: 655px) {
.zoom-wrapper button {
height: 40px;
}
.toolbar {
min-height: 287px;
height: 287px;
}
.toolbar button, .toolbar a {
height: 34px;
min-height: 34px;
}
}