-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
98 lines (89 loc) · 2.07 KB
/
styles.css
File metadata and controls
98 lines (89 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
body {
margin: 0;
padding: 0;
background-color: transparent;
font-family: 'Segoe Print', 'Ink Free', 'Comic Sans MS', sans-serif;
overflow: hidden;
height: 100vh;
display: flex;
flex-direction: column;
}
.note-container {
background-color: #feff9c; /* Classic Post-it Yellow */
flex: 1;
display: flex;
flex-direction: column;
margin: 10px; /* Space for shadow */
box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
border-radius: 2px; /* Slight roundness looks more natural */
/* transform: rotate(-1deg); Optional: slight tilt for realism, but affects text selection */
}
/* The top bar that allows dragging */
.title-bar {
height: 24px;
display: flex;
justify-content: flex-end;
align-items: center;
padding-right: 5px;
/* Make this area draggable */
-webkit-app-region: drag;
cursor: grab;
}
/* The actual draggable area needs to fill empty space */
.drag-region {
flex-grow: 1;
height: 100%;
}
/* Controls */
.control-btn {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: #555;
opacity: 0; /* Hidden by default */
transition: opacity 0.2s ease;
-webkit-app-region: no-drag; /* Buttons must be clickable, not draggable */
border-radius: 50%;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
margin-left: 5px;
}
.control-btn:hover {
background-color: rgba(0, 0, 0, 0.1);
color: #000;
}
/* Show controls when hovering over the note */
.note-container:hover .control-btn {
opacity: 1;
}
/* The main text area */
#note-content {
flex: 1;
background: transparent;
border: none;
resize: none;
outline: none;
padding: 0 15px 15px 15px;
font-family: inherit;
font-size: 16px;
color: #333;
line-height: 1.5;
scrollbar-width: thin;
scrollbar-color: rgba(0,0,0,0.1) transparent;
}
#note-content::placeholder {
color: rgba(0,0,0,0.3);
font-style: italic;
}
/* Custom Scrollbar for Webkit */
#note-content::-webkit-scrollbar {
width: 6px;
}
#note-content::-webkit-scrollbar-thumb {
background-color: rgba(0,0,0,0.1);
border-radius: 3px;
}