blockbench/css/window.css

1215 lines
25 KiB
CSS
Raw Normal View History

2020-04-26 02:25:07 +08:00
/*Layout*/
#page_wrapper {
height: calc(100% - 26px);
2020-04-26 02:25:07 +08:00
width: 100%;
border: 2px solid var(--color-frame);
border-top: none;
background-color: var(--color-dark);
2021-11-22 02:28:19 +08:00
display: flex;
flex-direction: column;
2020-04-26 02:25:07 +08:00
}
2021-07-07 19:08:56 +08:00
#page_wrapper.invisible {
visibility: hidden;
2020-04-26 02:25:07 +08:00
}
body {
background-image: url('../assets/logo_cutout.svg');
background-repeat: no-repeat;
background-size: 128px;
background-position: center;
}
#loading_error_message {
height: 100%;
width: 100%;
background-color: var(--color-dark);
border: 2px solid var(--color-accent);
text-align: center;
padding-top: 160px;
position: absolute;
z-index: 250;
}
2021-07-07 19:08:56 +08:00
#work_screen {
--toolbar-height: 30px;
2022-02-23 01:12:27 +08:00
position: relative;
2021-07-07 19:08:56 +08:00
display: grid;
grid-template-columns: 332px auto 314px;
grid-template-rows: var(--toolbar-height) minmax(200px, 5000px) 26px;
2021-07-07 19:08:56 +08:00
grid-template-areas:
"left_bar toolbar toolbar"
"left_bar center right_bar"
"left_bar status_bar right_bar";
width: 100%;
2021-11-22 02:28:19 +08:00
min-height: 300px;
2021-07-07 19:08:56 +08:00
}
2020-04-26 02:25:07 +08:00
2021-05-05 19:54:41 +08:00
#tab_bar {
height: 30px;
2021-05-05 19:54:41 +08:00
}
2020-04-26 02:25:07 +08:00
.sidebar {
background-color: var(--color-ui);;
display: flex;
flex-direction: column;
}
#left_bar {
grid-area: left_bar;
}
#right_bar {
grid-area: right_bar;
}
#center {
grid-area: center;
background-color: var(--color-dark);
min-width: 100px;
display: flex;
flex-direction: column;
position: relative;
2020-04-26 02:25:07 +08:00
}
div#center > div {
max-height: 100%;
}
#preview {
2020-04-26 02:25:07 +08:00
flex-grow: 1;
background-repeat: no-repeat;
background-size: 1000px;
position: relative;
--color-solid: #c1c1c1;
--color-outline: var(--color-accent);
--color-gizmohover: var(--color-outline);
--color-ground: var(--color-back);
--color-axis-x: #fd3043;
--color-axis-y: #26ec45;
--color-axis-z: #2d5ee8;
2020-04-26 02:25:07 +08:00
}
#status_bar {
grid-area: status_bar;
}
#top_slot,
#bottom_slot {
background-color: var(--color-ui);
}
2020-04-26 02:25:07 +08:00
.single_canvas_wrapper {
height: 100%;
width: 100%;
/*overflow: hidden;*/
2020-04-26 02:25:07 +08:00
position: absolute;
cursor: inherit;
}
.quad_canvas_wrapper {
height: 50%;
width: 50%;
position: absolute;
cursor: inherit;
}
.quad_canvas_wrapper.qcw_x {
border-right: 2px solid var(--color-grid);
}
.quad_canvas_wrapper.qcw_y {
border-bottom: 2px solid var(--color-grid);
}
.quad_canvas_wrapper:not(.qcw_x) {
right: 0;
}
.quad_canvas_wrapper:not(.qcw_y) {
bottom: 0;
}
.resizer {
position: absolute !important;
z-index: 12;
}
.resizer.vertical { /* | */
cursor: ew-resize;
width: 6px;
margin-left: -4px;
}
.resizer.horizontal { /* __ */
cursor: ns-resize;
height: 6px;
margin-top: -4px;
}
.resizer.disabled {
pointer-events: none;
}
/*
.resizer:hover, .resizer.ui-draggable-dragging {
background-color: var(--color-accent);
opacity: 0.2;
}*/
/* Toast Notification */
#toast_notification_list {
position: absolute;
left: 0;
right: 0;
top: 0;
z-index: 8;
}
.toast_notification {
position: relative;
background-color: var(--color-accent);
color: var(--color-accent_text);
min-height: 30px;
margin: 2px;
padding: 3px 28px 3px 10px;
width: calc(100% - 4px);
box-shadow: 0.4px 0.4px 4px rgba(0, 0, 0, 0.7);
}
.toast_notification .icon {
float: left;
}
.toast_close_button {
position: absolute;
right: 0px;
top: 0px;
height: 30px;
width: 30px;
padding: 4px;
cursor: pointer;
}
.toast_close_button:hover {
color: var(--color-light);
}
2020-04-26 02:25:07 +08:00
/*Head Bars*/
#main_toolbar {
background-color: var(--color-ui);;
grid-area: toolbar;
overflow: hidden;
white-space: nowrap;
display: flex;
}
#main_toolbar > * {
display: inline-block;
}
.toolbar_wrapper.tool_options {
flex-grow: 1;
}
header {
background-color: var(--color-frame);
grid-area: titlebar;
overflow: hidden;
display: flex;
white-space: nowrap;
height: 26px;
}
header > * {
display: inline-block;
height: 100%;
}
header ::-webkit-scrollbar {
height: 0;
}
2021-05-25 03:39:15 +08:00
div#corner_logo {
2020-04-26 02:25:07 +08:00
width: auto;
2021-07-07 19:08:56 +08:00
height: 26px;
2020-04-26 02:25:07 +08:00
padding-right: 8px;
padding-left: 6px;
margin-left: 4px;
font-size: 1.2em;
font-weight: normal;
color: var(--color-light);
vertical-align: top;
margin-top: -0.6px;
}
2021-05-25 03:39:15 +08:00
div#corner_logo img {
margin-top: 3px;
width: 134px;
2020-04-26 02:25:07 +08:00
}
@media (max-width:950px) {
2021-05-25 03:39:15 +08:00
div#corner_logo {
width: 36px;
overflow: hidden;
2020-04-26 02:25:07 +08:00
}
}
.app-drag-region {
-webkit-app-region: drag;
}
div#header_free_bar.app-drag-region {
flex-grow: 1;
2021-07-30 00:17:26 +08:00
overflow: hidden;
2021-07-07 19:08:56 +08:00
height: auto;
2021-07-11 04:22:02 +08:00
padding: 3px;
color: var(--color-subtle_text);
text-align: center;
2020-04-26 02:25:07 +08:00
}
div#header_free_bar.app-drag-region.resize_space {
margin-top: 4px;
2021-08-19 01:12:34 +08:00
padding-top: 0;
2020-04-26 02:25:07 +08:00
height: calc(100% - 4px);
}
2021-08-28 17:40:23 +08:00
@media (max-width:640px) {
div#header_free_bar.app-drag-region {
display: none;
}
}
2020-04-26 02:25:07 +08:00
#web_download_button {
margin-left: auto;
height: 100%;
padding: 0;
2020-07-16 15:32:59 +08:00
cursor: pointer;
2020-04-26 02:25:07 +08:00
}
#web_download_button a {
text-decoration: none !important;
height: 100%;
width: 100%;
padding: 0 12px;
2020-07-18 18:23:06 +08:00
cursor: inherit;
2020-04-26 02:25:07 +08:00
}
#web_download_button:hover a {
color: var(--color-accent_text);
}
#windows_window_menu {
margin-left: auto;
2021-07-30 00:17:26 +08:00
flex-shrink: 0;
2020-04-26 02:25:07 +08:00
}
#windows_window_menu li {
2020-05-31 21:54:04 +08:00
display: block;
2020-04-26 02:25:07 +08:00
width: 42px;
height: 100%;
text-align: center;
2020-05-31 21:54:04 +08:00
float: left;
2020-04-26 02:25:07 +08:00
}
#windows_window_menu li:hover {
color: var(--color-light);
background-color: var(--color-selected);
}
#windows_window_menu li.wwm_r:hover {
background-color: var(--color-close);
}
#windows_window_menu li i:not(.material-icons) {
font-size: 10pt;
}
#windows_window_menu i.material-icons {
vertical-align: bottom;
}
#mac_window_menu {
width: 68px;
2021-07-30 00:17:26 +08:00
flex-shrink: 0;
2020-04-26 02:25:07 +08:00
}
header .tool .icon {
font-size: 20px;
}
2020-04-26 02:25:07 +08:00
/*Mobile*/
body.is_mobile #page_wrapper {
2021-07-07 19:08:56 +08:00
border: none;
}
body.is_mobile #work_screen {
2020-04-26 02:25:07 +08:00
display: grid;
grid-template-rows: auto minmax(200px, 5000px) 26px 36px !important;
2020-04-26 02:25:07 +08:00
grid-template-areas:
"toolbar"
"center"
"status_bar"
"panel_selector";
2020-04-26 02:25:07 +08:00
grid-template-columns: auto !important;
2022-02-23 01:12:27 +08:00
position: relative;
2020-04-26 02:25:07 +08:00
}
body.is_mobile.is_landscape #work_screen {
grid-template-columns: auto 48px !important;
grid-template-rows: auto minmax(200px, 5000px) 26px !important;
grid-template-areas:
"toolbar panel_selector"
"center panel_selector"
"status_bar panel_selector";
position: relative;
2020-04-26 02:25:07 +08:00
}
body.is_mobile.is_landscape #work_screen #center {
flex-direction: row;
}
body.is_mobile #main_toolbar {
2020-04-26 02:25:07 +08:00
display: block;
}
body.is_mobile.is_landscape #main_toolbar {
display: flex;
height: fit-content;
}
body.is_mobile #main_toolbar > * {
display: block;
2020-04-26 02:25:07 +08:00
}
body.is_mobile .toolbar_wrapper.narrow.tools {
2020-04-26 02:25:07 +08:00
position: absolute;
z-index: 2;
bottom: 0px;
2020-04-26 02:25:07 +08:00
right: 0px;
}
body.is_mobile #main_toolbar > div.tool_options {
2020-04-26 02:25:07 +08:00
background-color: var(--color-back);
}
body.is_mobile .preview .preview_menu {
left: 0;
right: unset;
flex-direction: row-reverse;
}
body.is_mobile .resizer.vertical {
2020-04-26 02:25:07 +08:00
display: none;
}
body.is_mobile .sidebar {
2020-04-26 02:25:07 +08:00
overflow-y: auto;
}
body.is_mobile #left_bar, body.is_mobile #right_bar {
2020-04-26 02:25:07 +08:00
display: none;
}
body.is_mobile #preview {
overflow: hidden;
}
body.is_mobile #panel_selector_bar {
2020-04-26 02:25:07 +08:00
display: flex;
grid-area: panel_selector;
background-color: var(--color-ui);
}
body.is_mobile.is_landscape #panel_selector_bar {
flex-direction: column;
background: var(--color-frame);
}
body.is_mobile #panel_selector_bar .panel_selector {
height: 36px;
flex: 36px 1 0;
text-align: center;
cursor: default;
color: var(--color-text);
2020-04-26 02:25:07 +08:00
}
body.is_mobile.is_landscape #panel_selector_bar .panel_selector {
display: flex;
justify-content: center;
align-items: center;
}
body.is_mobile #panel_selector_bar .panel_selector.selected {
border-bottom: 3px solid var(--color-accent);
2020-04-26 02:25:07 +08:00
}
body.is_mobile.is_landscape #panel_selector_bar .panel_selector.selected {
border-bottom: none;
border-right: 5px solid var(--color-accent);
padding-left: 5px;
}
body.is_mobile .panel_selector:only-child {
2020-04-26 02:25:07 +08:00
display: none;
}
body.is_mobile #panel_selector_bar .panel_selector .icon_wrapper {
margin-top: 6px;
}
body.is_mobile #mobile_keyboard_menu {
width: 48px;
text-align: center;
padding: 6px;
position: relative;
color: var(--color-accent);
}
body.is_mobile #mobile_keyboard_menu:hover {
color: var(--color-light);
}
body.is_mobile #mobile_keyboard_menu.enabled::after {
content: "";
display: block;
position: absolute;
height: 8px;
width: 8px;
border-radius: 50%;
background-color: var(--color-accent);
bottom: 2px;
right: 19px;
}
2020-04-26 02:25:07 +08:00
/*Menu Bar*/
ul#menu_bar {
height: 100%;
}
li.menu_bar_point {
font-size: 17px;
padding: 0 8px;
padding-top: 2px;
display: inline-block;
height: 100%;
2020-04-26 02:25:07 +08:00
font-weight: normal;
}
li.menu_bar_point.opened {
2021-03-21 06:51:48 +08:00
color: var(--color-accent_text);
2020-04-26 02:25:07 +08:00
background: var(--color-accent);
}
li.menu_bar_point.highlighted {
animation: menu_item_highlight 1s infinite ease-in-out;
}
2021-11-22 02:28:19 +08:00
#title_bar_home_button {
height: 100%;
}
#title_bar_home_button > i {
margin-top: 2px;
}
2020-04-26 02:25:07 +08:00
#mode_selector {
font-size: 1.1em;
height: 30px;
2021-07-11 04:22:02 +08:00
margin-left: auto;
margin-right: 0;
text-align: right;
2020-04-26 02:25:07 +08:00
}
#mode_selector li {
display: inline-block;
height: 30px;
margin: 0 5px;
overflow: hidden;
padding-top: 2px;
font-size: 18px;
}
#mode_selector li:hover {
color: var(--color-light);
}
#mode_selector li.selected {
border-bottom: 3px solid var(--color-accent);
}
2021-05-05 19:54:41 +08:00
/* Tab Bar */
#tab_bar {
display: flex;
flex-direction: row;
position: relative;
white-space: nowrap;
padding-left: 4px;
2021-08-08 20:51:00 +08:00
background: var(--color-frame);
2021-05-05 19:54:41 +08:00
}
#tab_bar #tab_bar_list {
display: flex;
flex-direction: row;
flex-grow: 1;
position: relative;
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
margin-right: auto;
}
2021-05-05 19:54:41 +08:00
#tab_bar .project_tab {
background-color: var(--color-back);
cursor: pointer;
width: 240px;
2021-05-05 19:54:41 +08:00
min-width: 120px;
height: 100%;
padding: 2px 6px;
position: relative;
overflow: hidden;
display: inline-flex;
margin-left: 2px;
border-top: 2px solid transparent;
2021-05-08 22:52:49 +08:00
left: 0;
--tabwidth: 202px;
}
#tab_bar.drag_mode .project_tab {
transition: left 100ms ease;
2021-05-05 19:54:41 +08:00
}
#tab_bar .project_tab.selected {
background-color: var(--color-ui);
cursor: default;
border-top-color: var(--color-accent);
}
2021-07-07 19:08:56 +08:00
#tab_bar .project_tab.selected.new_tab {
background-color: var(--color-dark);
}
2021-05-05 19:54:41 +08:00
#tab_bar .project_tab:not(.selected):hover {
background-color: var(--color-button);
color: var(--color-light);
}
2021-05-08 22:52:49 +08:00
#tab_bar .project_tab.dragging {
background-color: var(--color-button);
color: var(--color-light);
position: relative;
z-index: 5;
box-shadow: 0 0 10px #00000080;
transition: none;
}
#tab_bar .project_tab.move_back {
left: calc(var(--tabwidth) * -1);
}
#tab_bar .project_tab.move_forth {
left: var(--tabwidth);
}
2021-05-05 19:54:41 +08:00
#tab_bar .project_tab > label {
overflow: hidden;
width: calc(100% - 20px);
flex: 1 1 auto;
padding: 0 4px;
2021-05-08 22:52:49 +08:00
pointer-events: none;
2021-05-05 19:54:41 +08:00
}
#tab_bar .project_tab > * {
cursor: inherit
}
#tab_bar .project_tab_close_button {
flex: 0 0 24px;
text-align: center;
cursor: pointer;
display: none;
}
2021-07-11 04:22:02 +08:00
#tab_bar .project_tab_close_button > * {
pointer-events: none;
}
2021-05-05 19:54:41 +08:00
#tab_bar .project_tab:hover .project_tab_close_button,
#tab_bar .project_tab.selected .project_tab_close_button,
#tab_bar .project_tab .project_tab_close_button.unsaved {
display: block;
}
#tab_bar .project_tab_close_button:hover {
color: var(--color-light);
}
#tab_bar .project_tab_close_button.unsaved > i.unsaved_icon {
2021-05-05 19:54:41 +08:00
font-size: 13px;
text-align: center;
}
#tab_bar .project_tab_close_button.unsaved:hover > i.unsaved_icon,
#tab_bar .project_tab_close_button.unsaved:not(:hover) > i.close_icon {
display: none;
}
#new_tab_button {
height: 100%;
width: 32px;
text-align: center;
cursor: pointer;
padding-top: 4px;
flex-shrink: 0;
}
#new_tab_button:hover {
color: var(--color-light);
}
#search_tab_button {
height: 100%;
width: 32px;
text-align: center;
cursor: pointer;
padding-top: 4px;
flex-shrink: 0;
}
#search_tab_button:hover {
color: var(--color-light);
}
#tab_bar .project_tab > label.project_tab_session_badge {
display: flex;
flex-grow: 0;
width: auto;
color: var(--color-accent);
}
#tab_bar .project_tab > label.project_tab_session_badge i {
margin-right: 2px;
margin-left: -4px;
}
#tab_bar.invisible {
visibility: hidden;
}
2021-08-21 02:35:13 +08:00
.project_thumbnail {
z-index: 50;
background-color: var(--color-back);
position: absolute;
box-shadow: 0 0 10px rgb(0 0 0 / 40%);
max-width: 240px;
image-rendering: auto;
animation: fade_in_thumbnail 700ms;
transition: left 100ms ease-in-out;
2021-08-21 02:35:13 +08:00
}
@keyframes fade_in_thumbnail {
0% {
opacity: 0;
}
80% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2020-04-26 02:25:07 +08:00
/*Start Screen*/
2020-12-22 20:32:49 +08:00
#mode_screen_start {
2020-04-26 02:25:07 +08:00
flex-grow: 1;
}
2020-12-22 20:32:49 +08:00
#start_screen {
2021-11-22 02:28:19 +08:00
min-height: 300px;
flex-grow: 1;
2020-12-22 20:32:49 +08:00
width: 100%;
2021-08-14 18:57:17 +08:00
padding: 36px 0;
overflow-y: auto;
2020-12-22 20:32:49 +08:00
}
2020-04-26 02:25:07 +08:00
#start_screen h3 {
margin: 0;
}
#start_screen #start-files h3 {
2020-07-18 16:54:32 +08:00
padding-bottom: 0;
height: auto;
font-size: 18px;
2020-04-26 02:25:07 +08:00
}
#start_screen .bar.next_to_title {
position: absolute;
right: 8px;
2020-04-26 02:25:07 +08:00
}
#start_screen .recent_project {
margin: 2px 0;
display: flex;
2020-07-16 15:32:59 +08:00
cursor: pointer;
2020-04-26 02:25:07 +08:00
}
#start_screen .recent_project .icon_wrapper {
flex-shrink: 0;
}
#start_screen .recent_project_name {
font-size: 1.1em;
overflow-x: hidden;
flex-shrink: 1;
flex-grow: 1;
margin: 0 4px;
}
#start_screen .recent_project_date {
flex-shrink: 0;
2020-05-31 21:54:04 +08:00
position: relative;
color: var(--color-subtle_text);
2020-04-26 02:25:07 +08:00
}
span.recent_project_date:before {
content: "";
display: block;
position: absolute;
width: 16px;
height: 26px;
margin-left: -20px;
background: linear-gradient(90deg, transparent, var(--color-ui));
}
#start_screen_view_menu {
2020-07-16 15:32:59 +08:00
height: 30px;
position: absolute;
top: 32px;
right: 20px;
}
#start_screen_view_menu li.selected {
2020-07-16 15:32:59 +08:00
border-bottom: 3px solid var(--color-accent);
}
2020-04-26 02:25:07 +08:00
2020-07-16 15:32:59 +08:00
#start_screen .recent_project.thumbnail {
display: block;
margin: 0;
2020-07-16 15:32:59 +08:00
height: 130px;
2020-04-26 02:25:07 +08:00
position: relative;
background-color: var(--color-back);
2020-07-16 15:32:59 +08:00
cursor: pointer;
}
#start_screen .recent_project.thumbnail .thumbnail_image {
display: block;
2020-07-16 15:32:59 +08:00
width: 180px;
height: 100px;
margin: auto;
2020-07-16 15:32:59 +08:00
cursor: pointer;
2020-04-26 02:25:07 +08:00
}
#start_screen .recent_project.thumbnail:hover {
2020-07-16 15:32:59 +08:00
background-color: var(--color-accent);
2020-04-26 02:25:07 +08:00
}
#start_screen .recent_project.thumbnail .recent_project_name {
font-size: 1em;
overflow-x: hidden;
2020-07-16 15:32:59 +08:00
height: 30px;
right: 0px;
left: 0px;
2020-04-26 02:25:07 +08:00
bottom: 0;
2020-07-16 15:32:59 +08:00
margin: 0;
padding-top: 2px;
2020-04-26 02:25:07 +08:00
position: absolute;
2020-07-16 15:32:59 +08:00
text-align: center;
}
#start_screen .recent_project.thumbnail .icon_wrapper {
position: absolute;
display: none;
pointer-events: none;
padding: 2px;
color: var(--color-accent_text);
background-color: var(--color-accent);
top: 0;
2020-07-16 15:32:59 +08:00
}
#start_screen .recent_project.thumbnail:hover .recent_project_name {
color: var(--color-accent_text);
background-color: transparent;
}
#start-files ul.redact li.recent_project.thumbnail .thumbnail_image {
background: transparent !important;
}
#start_screen .recent_project.thumbnail:hover .icon_wrapper {
display: block;
2020-04-26 02:25:07 +08:00
}
#start_screen_view_menu .search_bar {
min-width: 38px;
height: 100%;
float: left;
margin-right: 10px;
}
2020-04-26 02:25:07 +08:00
#start_screen > content {
display: block;
max-width: 1000px;
height: auto;
margin-left: auto;
margin-right: auto;
background-color: var(--color-ui);
2021-12-21 22:24:01 +08:00
box-shadow: 0 0 50px #00000060;
2021-07-07 19:08:56 +08:00
overflow-x: hidden;
2020-04-26 02:25:07 +08:00
image-rendering: auto;
}
#start_screen > content > section {
width: 100%;
height: auto;
display: flex;
position: relative;
}
#start_screen > content > section.vertical {
flex-direction: column;
}
#start_screen section div.start_screen_left, #start_screen section div.start_screen_right {
2020-04-26 02:25:07 +08:00
display: block;
padding: 24px;
max-height: 606px;
2020-04-26 02:25:07 +08:00
}
#start_screen section div.start_screen_right > ul {
max-height: 470px;
2020-04-26 02:25:07 +08:00
padding-right: 5px;
overflow-y: auto;
grid-template-columns: repeat(auto-fit, minmax(170px ,1fr));
grid-gap: 5px;
2020-04-26 02:25:07 +08:00
}
#start_screen div.start_screen_left {
max-width: 100%;
2020-04-26 02:25:07 +08:00
flex-grow: 0;
}
#start_screen div.graphic:not(.graphic_icon) {
2020-04-26 02:25:07 +08:00
background-size: cover;
position: relative;
padding: 0;
}
#start_screen div.graphic p {
position: absolute;
font-size: 0.96em;
2020-04-26 02:25:07 +08:00
}
#start_screen div.graphic.graphic_icon i {
2020-04-26 02:25:07 +08:00
font-size: 40px;
width: 12px;
margin-top: 6px;
}
#start_screen div.start_screen_right {
2020-04-26 02:25:07 +08:00
flex-grow: 1;
2020-05-31 21:54:04 +08:00
width: 62%;
2020-04-26 02:25:07 +08:00
}
#start_screen section.vertical div.start_screen_right {
width: auto;
text-align: center;
}
2020-04-26 02:25:07 +08:00
#start_screen i.start_screen_close_button {
position: absolute;
top: 8px;
right: 8px;
cursor: pointer;
2020-04-26 02:25:07 +08:00
}
#start_screen i.start_screen_close_button:not(:hover) {
opacity: 0.8;
}
#start_screen section.vertical.bright_ui .start_screen_right {
box-shadow: 0 0 14px #00103030;
}
#start_screen .start_screen_features {
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
padding: 12px;
background: #00004006;
}
#start_screen .start_screen_features > li {
width: 30%;
flex-grow: 1;
min-width: 250px;
box-sizing: border-box;
justify-content: space-between;
text-align: center;
margin: 7px;
padding: 7px;
}
#start_screen .start_screen_features > li > * {
max-width: 100%;
font-weight: 300;
display: block;
margin: auto;
}
#start_screen .start_screen_features > li > h3 {
font-size: 1.4em;
}
@media (max-device-width: 640px) {
2020-04-26 02:25:07 +08:00
#start_screen {
2021-01-31 05:30:34 +08:00
width: 100%;
2020-04-26 02:25:07 +08:00
}
#start_screen > content {
margin-top: 0px;
margin-top: 0px;
margin-left: 0;
margin-right: 0;
max-height: 100%;
}
#start_screen > content > section {
display: block;
}
#start_screen content section div.start_screen_right {
2020-04-26 02:25:07 +08:00
width: 100% !important;
float: none;
}
#start_screen content section div.start_screen_left {
2020-04-26 02:25:07 +08:00
width: 100% !important;
float: none;
}
#start_screen content section div.start_screen_left {
2020-04-26 02:25:07 +08:00
width: 100% !important;
float: none;
}
}
#start-files li:hover {
color: var(--color-light);
}
#start_screen section#start-files div.start_screen_left {
2020-04-26 02:25:07 +08:00
width: 38%;
padding: 20px 24px 0px 24px;
position: relative;
display: flex;
flex-direction: column;
2020-04-26 02:25:07 +08:00
}
#start-files div.start_screen_right {
2020-04-26 02:25:07 +08:00
border-left: 1px solid var(--color-border);
}
#start_screen div.start_screen_left > ul {
margin-bottom: 16px;
2020-07-16 15:32:59 +08:00
overflow-y: auto;
2020-04-26 02:25:07 +08:00
}
#start_screen div.start_screen_right i {
2020-04-26 02:25:07 +08:00
vertical-align: sub;
}
#start-files div.start_screen_left li {
2020-04-26 02:25:07 +08:00
padding: 4px 0;
2020-07-16 15:32:59 +08:00
cursor: pointer;
2020-04-26 02:25:07 +08:00
}
#start-files div.start_screen_left span.icon_wrapper {
2020-04-26 02:25:07 +08:00
height: 22px;
}
#start-files div.start_screen_left li p {
2021-01-02 22:08:07 +08:00
font-size: 0.94em;
line-height: normal;
2021-01-02 22:08:07 +08:00
color: var(--color-subtle_text);
}
#start-files div.start_screen_left i {
2021-01-02 22:08:07 +08:00
font-size: 18pt;
2020-04-26 02:25:07 +08:00
height: 22px;
2020-07-18 16:54:32 +08:00
margin: 2px 8px 0px 0;
2020-04-26 02:25:07 +08:00
display: inline-block;
}
section#keymap_preference {
display: block !important;
}
section#keymap_preference > ul {
display: grid;
grid-template-columns: auto auto auto;
grid-gap: 6px;
padding: 12px;
}
section#keymap_preference > h2 {
padding: 12px 20px;
}
section#keymap_preference > p {
padding: 0 20px;
}
section#keymap_preference .keymap_select_box {
display: inline-block;
padding: 12px;
min-height: 132px;
background-color: var(--color-back);
cursor: pointer;
border: 2px solid transparent;
}
section#keymap_preference .keymap_select_box:hover {
color: var(--color-light);
border-color: var(--color-accent);
background-color: var(--color-ui);
}
section#keymap_preference .keymap_select_box p {
color: var(--color-subtle_text);
}
2022-03-06 05:59:54 +08:00
#start_screen section#quick_setup {
padding: 20px 24px;
display: block;
border-bottom: 5px solid var(--color-border);
}
section#quick_setup > h2 {
display: block;
}
section#quick_setup > div {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
width: 420px;
max-width: 100%;
margin-right: 48px;
margin-top: 16px;
margin-bottom: 8px;
}
section#quick_setup > div > label {
min-width: 120px;
display: inline-block;
}
section#quick_setup > div select {
flex-grow: 1;
}
section#quick_setup > div > p {
color: var(--color-subtle_text);
}
.quick_setup_theme {
cursor: pointer;
flex-basis: 0;
flex-grow: 1;
white-space: nowrap;
}
.quick_setup_theme > div {
height: 36px;
width: 36px;
border-radius: 50%;
margin-right: 6px;
display: inline-block;
vertical-align: middle;
border: 2px solid var(--color-border);
color: var(--color-text);
padding-top: 8px;
background-color: var(--color-ui);
cursor: inherit;
text-align: center;
}
.quick_setup_theme:hover,
.quick_setup_theme.selected {
color: var(--color-light);
}
.quick_setup_theme:hover > div,
.quick_setup_theme.selected > div {
border-color: var(--color-accent);
}
2020-04-26 02:25:07 +08:00
/*Status Bar*/
#status_bar {
position: relative;
2021-01-10 01:33:42 +08:00
display: flex;
2020-04-26 02:25:07 +08:00
background: var(--color-back);
}
#status_bar > div {
padding-left: 6px;
padding-right: 6px;
2021-01-10 01:33:42 +08:00
padding-top: 1px;
flex-shrink: 0;
2020-04-26 02:25:07 +08:00
}
#status_bar > div#status_saved {
padding-top: 2px;
}
2021-01-10 01:33:42 +08:00
#status_bar > div#status_name {
width: 0;
flex-grow: 1;
overflow: hidden;
}
2020-04-26 02:25:07 +08:00
#status_bar #status_progress {
position: absolute;
height: 4px;
background: var(--color-accent);
bottom: 0;
left: 0;
}
2021-11-30 06:50:51 +08:00
#status_bar .status_bar_modifier_key {
flex-grow: 0.06;
text-align: center;
padding-top: 2px;
font-size: 0.92em;
}
#status_bar .status_bar_modifier_key kbd {
font-family: inherit;
border-radius: 2px;
background-color: var(--color-button);
padding: 1px 5px;
}
#status_bar .status_bar_modifier_key span {
color: var(--color-subtle_text);
}
#status_bar .status_selection_info {
color: var(--color-subtle_text);
}
2021-01-10 01:33:42 +08:00
#status_bar .sidebar_toggle_button {
cursor: pointer;
padding: 2px;
padding-right: 0;
padding-left: 0;
}
.sidebar_toggle_button > i {
cursor: inherit;
}
.sidebar_toggle_button:hover {
color: var(--color-light);
}
2021-02-04 17:09:25 +08:00
/* Preview */
.orbit_gizmo {
2021-02-04 17:09:25 +08:00
position: absolute;
border-radius: 50%;
width: 80px;
height: 80px;
bottom: 0;
right: 0;
2021-02-05 00:20:01 +08:00
opacity: 0.6;
2021-02-04 17:09:25 +08:00
overflow: hidden;
}
.orbit_gizmo:hover, .orbit_gizmo.mouse_active {
2021-02-04 17:09:25 +08:00
background-color: #00000040;
opacity: 1;
}
.orbit_gizmo > svg {
2021-02-04 17:09:25 +08:00
width: 100%;
height: 100%;
display: block;
2021-02-05 00:20:01 +08:00
pointer-events: none;
filter: brightness(0.7);
2021-02-04 17:09:25 +08:00
}
.orbit_gizmo > svg path {
2021-02-04 17:09:25 +08:00
stroke-width: 2px;
fill: none;
}
.orbit_gizmo_side {
2021-02-04 17:09:25 +08:00
color: var(--color-accent_text);
position: absolute;
width: 16px;
height: 16px;
margin: -8px;
border-radius: 50%;
z-index: 1;
2021-02-05 00:20:01 +08:00
text-align: center;
2021-02-04 17:09:25 +08:00
font-size: 12px;
2021-02-05 00:20:01 +08:00
line-height: 16px;
2021-02-04 17:09:25 +08:00
font-family: var(--font-code);
}
.orbit_gizmo.mouse_active .orbit_gizmo_side {
2021-02-04 17:09:25 +08:00
pointer-events: none;
}
.orbit_gizmo_side[axis="x"], .orbit_gizmo > svg path[axis="x"] {
2021-02-04 17:09:25 +08:00
background-color: var(--color-axis-x);
stroke: var(--color-axis-x);
}
.orbit_gizmo_side[axis="y"], .orbit_gizmo > svg path[axis="y"] {
2021-02-04 17:09:25 +08:00
background-color: var(--color-axis-y);
stroke: var(--color-axis-y);
}
.orbit_gizmo_side[axis="z"], .orbit_gizmo > svg path[axis="z"] {
2021-02-04 17:09:25 +08:00
background-color: var(--color-axis-z);
stroke: var(--color-axis-z);
}
.orbit_gizmo_side.background {
2021-02-04 17:09:25 +08:00
z-index: 0;
2021-02-05 00:20:01 +08:00
filter: brightness(0.7);
2021-02-04 17:09:25 +08:00
}
.orbit_gizmo:not(.mouse_active) .orbit_gizmo_side:hover {
2021-02-04 17:09:25 +08:00
background-color: var(--color-bright_ui) !important;
2021-02-05 00:20:01 +08:00
filter: brightness(1);
2021-12-08 01:31:16 +08:00
}
/* GIF Recorder */
#gif_recording_frame {
pointer-events: none;
position: absolute;
border: 2px dashed var(--color-accent);
top: 0;
right: 0;
left: 0;
bottom: 0;
}
#gif_recording_frame.recording {
pointer-events: none;
}
#gif_recording_frame_label {
text-align: center;
color: var(--color-subtle_text);
font-family: var(--font-code);
}
#gif_recording_controls {
pointer-events: initial;
background-color: var(--color-ui);
box-shadow: 0 0 8px #00000040;
height: 30px;
width: fit-content;
margin: auto;
position: absolute;
2021-12-14 07:14:23 +08:00
display: flex;
bottom: 0;
right: 0;
left: 0;
}
.gif_recording_frame_handle {
pointer-events: initial;
position: absolute;
width: 22px;
height: 22px;
cursor: move;
}
#gif_recording_frame.recording .gif_recording_frame_handle {
display: none;
}
.gif_recording_frame_handle:hover {
color: var(--color-light);
}
#gif_recording_controls .gif_record_button:hover {
filter: brightness(1.2);
}
#gif_recording_frame.recording .gif_record_button {
animation: record_button_blink 0.5s infinite;
pointer-events: none;
}
@keyframes record_button_blink {
0% {opacity: 0;}
50% {opacity: 0;}
51% {opacity: 1;}
}
.gif_recording_frame_handle.gif_resize_ne {cursor: ne-resize}
.gif_recording_frame_handle.gif_resize_nw {cursor: nw-resize}
.gif_recording_frame_handle.gif_resize_se {cursor: se-resize}
.gif_recording_frame_handle.gif_resize_sw {cursor: sw-resize}
.gif_recording_frame_handle.gif_resize_ne i {transform: rotate(-45deg);}
.gif_recording_frame_handle.gif_resize_nw i {transform: rotate(225deg);}
.gif_recording_frame_handle.gif_resize_se i {transform: rotate(45deg);}
.gif_recording_frame_handle.gif_resize_sw i {transform: rotate(135deg);}
2021-12-08 01:31:16 +08:00
/* Amend Edit Menu */
#amend_edit_menu {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding-right: 30px;
margin: auto;
width: fit-content;
}
#amend_edit_menu > div.amend_edit_line {
background-color: var(--color-ui);
padding: 0px 8px;
height: 30px;
display: flex;
}
#amend_edit_menu > div.amend_edit_line .nslide_tool {
float: none;
}
#amend_edit_menu > div.amend_edit_line > label {
padding: 4px 6px;
}
.amend_edit_close_button {
position: absolute;
right: 0px;
top: 0px;
height: 30px;
width: 30px;
padding: 4px;
cursor: pointer;
}
.amend_edit_close_button:hover {
color: var(--color-light);
}