Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
260 changes: 156 additions & 104 deletions src/components/contextmenu/style.scss
Original file line number Diff line number Diff line change
@@ -1,104 +1,156 @@
body.no-animation {
.context-menu {
border: solid 1px rgba($color: #000000, $alpha: 0.2);
}
}

.context-menu {
z-index: 111;
box-sizing: border-box;
position: fixed;
width: fit-content;
min-width: 220px;
max-width: 320px;
min-height: 40px;
max-height: calc(100vh - 38px);
overflow-y: auto;
user-select: none;
background-color: rgb(255, 255, 255);
background-color: var(--popup-background-color);
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 4px var(--box-shadow-color);
border-radius: 4px;

transform-origin: top center;
animation: menu-grow 100ms ease 1;

list-style: none;
padding: 0;
border: solid 1px transparent;
border: solid 1px var(--popup-border-color);

&+.mask {
z-index: 110;
}

&.disabled {
li {
pointer-events: none;
opacity: 0.5;
}
}

hr {
border: none;
border-bottom: solid 1px rgba(122, 122, 122, 0.227);
border-bottom: solid 1px var(--border-color);
}

li {
display: flex;
height: 50px;
align-items: center;
padding: 0 10px;
user-select: none;

&.notice::after {
content: '•';
color: rgb(255, 218, 12);
font-size: 1.2em;
margin-left: 2.5px;
text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.5);
}

&:focus {
background-color: rgba($color: #000000, $alpha: 0.1);
}

* {
pointer-events: none;
}

[data-action],
[action] {
pointer-events: all !important;
}

.text {
flex: 1;
color: rgb(37, 37, 37);
color: var(--popup-text-color);

.value {
display: block;
opacity: 0.6;
font-size: 0.8em;
}
}

.icon {
color: rgb(153, 153, 255);
color: var(--popup-icon-color);
}

&.disabled {
pointer-events: none;
opacity: 0.5;
}
}

&.hide {
transition: all 100ms ease;
opacity: 0;
}
}
body.no-animation {
.context-menu {
border: solid 1px rgba($color: #000000, $alpha: 0.2);
}
}

.context-menu {
z-index: 111;
box-sizing: border-box;
position: fixed;
width: fit-content;
min-width: 220px;
max-width: 320px;
min-height: 40px;
max-height: calc(100vh - 38px);
overflow-y: auto;
user-select: none;
background-color: rgb(255, 255, 255);
background-color: var(--popup-background-color);
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 4px var(--box-shadow-color);
border-radius: var(--popup-border-radius);

transform-origin: top center;
animation: menu-grow 100ms ease 1;

list-style: none;
padding: 0;
border: solid 1px transparent;
border: solid 1px var(--popup-border-color);

@media (min-width: 769px) {
min-width: 260px;
max-width: 400px;
min-height: 48px;
box-shadow: 0 0 8px var(--box-shadow-color);
}

@media (min-width: 1024px) {
min-width: 300px;
max-width: 480px;
min-height: 56px;
box-shadow: 0 0 16px var(--box-shadow-color);
}

& + .mask {
z-index: 110;
}

&.disabled {
li {
pointer-events: none;
opacity: 0.5;
}
}

hr {
border: none;
border-bottom: solid 1px rgba(122, 122, 122, 0.227);
border-bottom: solid 1px var(--border-color);
}

li {
display: flex;
height: 50px;
align-items: center;
padding: 0 10px;
user-select: none;

&.notice::after {
content: "•";
color: rgb(255, 218, 12);
font-size: 1.2em;
margin-left: 2.5px;
text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.5);
}

&:focus {
background-color: rgba($color: #000000, $alpha: 0.1);
}

* {
pointer-events: none;
}

[data-action],
[action] {
pointer-events: all !important;
}

.text {
flex: 1;
color: rgb(37, 37, 37);
color: var(--popup-text-color);

.value {
display: block;
opacity: 0.6;
font-size: 0.8em;
}
}

.icon {
color: rgb(153, 153, 255);
color: var(--popup-icon-color);
}

&.disabled {
pointer-events: none;
opacity: 0.5;
}

@media (min-width: 769px) {
height: 56px;
font-size: 1.05em;

&.notice::after {
font-size: 1.3em;
}

.text {
.value {
font-size: 0.85em;
}
}

.icon {
font-size: 1.1em;
}
}

@media (min-width: 1024px) {
height: 64px;
font-size: 1.1em;

&.notice::after {
font-size: 1.4em;
}

.text {
.value {
font-size: 0.9em;
}
}

.icon {
font-size: 1.2em;
}
}
}

&.hide {
transition: all 100ms ease;
opacity: 0;
}
}
128 changes: 81 additions & 47 deletions src/components/searchbar/style.scss
Original file line number Diff line number Diff line change
@@ -1,47 +1,81 @@
#search-bar {
position: fixed;
top: 0;
left: 0;
height: 45px;
width: 100%;
animation: show-searchbar 300ms ease 1;
z-index: 200;
background-color: inherit;
display: flex;

input {
flex: 1;
border-radius: 4px;
box-shadow: rgba(0, 0, 0, 0.2);
box-shadow: var(--box-shadow-color);
border: none;
margin: 5px;
box-sizing: border-box;
color: var(--primary-text-color);

&:focus {
outline: none;
box-shadow: rgba(0, 0, 0, 0.5);
}

&::-webkit-search-decoration,
&::-webkit-search-cancel-button,
&::-webkit-search-results-button,
&::-webkit-search-results-decoration {
display: none;
}
}

.icon {
height: 45px;
width: 45px;
font-size: 1.2em;
color: rgb(255, 255, 255);
}

&.hide {
transition: all 300ms ease;
opacity: 0;
transform: translate(0, -100%, 0);
}
}
#search-bar {
position: fixed;
top: 0;
left: 0;
height: 45px;
width: 100%;
animation: show-searchbar 300ms ease 1;
z-index: 200;
background-color: inherit;
display: flex;

input {
flex: 1;
border-radius: 4px;
box-shadow: rgba(0, 0, 0, 0.2);
box-shadow: var(--box-shadow-color);
border: none;
margin: 5px;
box-sizing: border-box;
color: var(--primary-text-color);

&:focus {
outline: none;
box-shadow: rgba(0, 0, 0, 0.5);
}

&::-webkit-search-decoration,
&::-webkit-search-cancel-button,
&::-webkit-search-results-button,
&::-webkit-search-results-decoration {
display: none;
}
}

.icon {
height: 45px;
width: 45px;
font-size: 1.2em;
color: rgb(255, 255, 255);
}

&.hide {
transition: all 300ms ease;
opacity: 0;
transform: translate(0, -100%, 0);
}

@media (min-width: 769px) {
height: 60px;

input {
margin: 8px;
border-radius: 6px;
font-size: 1.1em;
padding: 0 12px;
}

.icon {
height: 60px;
width: 60px;
font-size: 1.4em;
}
}

@media (min-width: 1024px) {
height: 70px;

input {
margin: 10px;
border-radius: 8px;
font-size: 1.2em;
padding: 0 16px;
}

.icon {
height: 70px;
width: 70px;
font-size: 1.6em;
}
}
}
Loading