not bad already
This commit is contained in:
307
style.css
307
style.css
@@ -1,116 +1,255 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.shape-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-template-rows: repeat(2, auto);
|
||||
gap: 30px 10px;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
background: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#shape-rectangle {
|
||||
width: 80px;
|
||||
height: 48px;
|
||||
}
|
||||
.toolbar {
|
||||
background: #ffffff;
|
||||
color: #333;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
|
||||
position: absolute;
|
||||
width: 280px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
z-index: 9;
|
||||
overflow-y: auto;
|
||||
border-right: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
#shape-ellipse {
|
||||
width: 80px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.toolbar p {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
color: #666;
|
||||
margin-bottom: 8px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 2px solid #e0e0e0;
|
||||
}
|
||||
|
||||
#shape-diamond {
|
||||
height: 48px;
|
||||
width: 48px;
|
||||
transform: rotate(45deg) translateX(15px);
|
||||
}
|
||||
.toolbar-wrapper {
|
||||
background: #f9f9f9;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
#shape-text {
|
||||
width: 80px;
|
||||
height: 48px;
|
||||
border-style: dashed;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
user-select: none;
|
||||
}
|
||||
.shape-wrapper {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.shape {
|
||||
background: transparent;
|
||||
border: 1px solid white;
|
||||
cursor: pointer;
|
||||
}
|
||||
.shape {
|
||||
background: #fff;
|
||||
border: 2px solid #d0d0d0;
|
||||
cursor: grab;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
background: #3498db;
|
||||
color: white;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||
position: absolute;
|
||||
width: 300px;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
height: 100vh;
|
||||
z-index: 9;
|
||||
border-top-right-radius: 30px;
|
||||
border-bottom-right-radius: 30px;
|
||||
}
|
||||
.shape:hover {
|
||||
border-color: #666;
|
||||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.toolbar-wrapper {
|
||||
padding-bottom: 30px;
|
||||
padding: 20px;
|
||||
}
|
||||
.shape:active {
|
||||
cursor: grabbing;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#shape-rectangle {
|
||||
width: 80px;
|
||||
height: 48px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#shape-ellipse {
|
||||
width: 80px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
#shape-diamond {
|
||||
height: 48px;
|
||||
width: 48px;
|
||||
transform: rotate(45deg) translateX(15px);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#shape-text {
|
||||
width: 80px;
|
||||
height: 48px;
|
||||
border-style: dashed;
|
||||
border-radius: 4px;
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* Tools wrapper */
|
||||
.tools-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tools-wrapper button {
|
||||
padding: 12px 16px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
border: 1px solid #d0d0d0;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s, border-color 0.2s;
|
||||
background: #fff;
|
||||
color: #333;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.tools-wrapper button:hover {
|
||||
background: #f5f5f5;
|
||||
border-color: #999;
|
||||
}
|
||||
|
||||
.tools-wrapper button:active {
|
||||
background: #e8e8e8;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
#btn-delete {
|
||||
color: #d32f2f;
|
||||
border-color: #d32f2f;
|
||||
}
|
||||
|
||||
#btn-delete:hover {
|
||||
background: #ffebee;
|
||||
border-color: #c62828;
|
||||
}
|
||||
|
||||
#btn-copy {
|
||||
color: #1976d2;
|
||||
border-color: #1976d2;
|
||||
}
|
||||
|
||||
#btn-copy:hover {
|
||||
background: #e3f2fd;
|
||||
border-color: #1565c0;
|
||||
}
|
||||
|
||||
#btn-paste {
|
||||
color: #388e3c;
|
||||
border-color: #388e3c;
|
||||
}
|
||||
|
||||
#btn-paste:hover {
|
||||
background: #e8f5e9;
|
||||
border-color: #2e7d32;
|
||||
}
|
||||
|
||||
/* Zoom wrapper */
|
||||
.zoom-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 15px;
|
||||
padding: 10px 20px !important;
|
||||
gap: 12px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.zoom-wrapper button {
|
||||
background: white;
|
||||
color: #3498db;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
color: #333;
|
||||
border: 1px solid #d0d0d0;
|
||||
border-radius: 6px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
font-size: 24px;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
transition: background 0.2s, border-color 0.2s;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.zoom-wrapper button:hover {
|
||||
background: #2980b9;
|
||||
color: white;
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
|
||||
background: #f5f5f5;
|
||||
border-color: #999;
|
||||
}
|
||||
|
||||
.zoom-wrapper button:active {
|
||||
transform: scale(0.95);
|
||||
background: #e8e8e8;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* Fajny efekt przy najechaniu */
|
||||
.zoom-wrapper button i {
|
||||
transition: transform 0.3s ease;
|
||||
/* Canvas container */
|
||||
.canvas-container {
|
||||
position: absolute;
|
||||
left: 280px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: #ffffff;
|
||||
background-image:
|
||||
linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
|
||||
background-size: 20px 20px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.zoom-wrapper button:hover i {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
#paper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Scrollbar styling */
|
||||
.toolbar::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.toolbar::-webkit-scrollbar-track {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.toolbar::-webkit-scrollbar-thumb {
|
||||
background: #d0d0d0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.toolbar::-webkit-scrollbar-thumb:hover {
|
||||
background: #999;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.toolbar {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.canvas-container {
|
||||
left: 0;
|
||||
top: auto;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user