cobalt/src/front/cobalt.css

944 lines
19 KiB
CSS
Raw Normal View History

2022-07-08 19:17:56 +01:00
:root {
--transparent: rgba(0, 0, 0, 0);
--without-padding: calc(100% - 4rem);
--border-15: 0.15rem solid var(--accent);
2022-08-04 19:08:26 +01:00
--border-10: 0.1rem solid var(--accent);
--font-mono: 'Noto Sans Mono', 'Consolas', 'SF Mono', monospace;
--padding-1: 0.75rem;
--line-height: 1.65rem;
--red: rgb(255, 0, 61);
--gap: 0.5rem;
--gap-no-icon: 0.6rem;
2022-07-08 19:17:56 +01:00
}
@media (prefers-color-scheme: dark) {
:root {
--accent: rgb(225, 225, 225);
--accent-highlight: rgb(225, 225, 225, 4%);
--accent-subtext: rgb(110, 110, 110);
2023-06-25 08:47:34 +01:00
--accent-hover: rgb(30, 30, 30);
--accent-button: rgb(25, 25, 25);
--subbackground: rgb(10, 10, 10);
2022-07-08 19:17:56 +01:00
--background: rgb(0, 0, 0);
}
}
@media (prefers-color-scheme: light) {
:root {
--accent: rgb(25, 25, 25);
2023-06-25 08:47:34 +01:00
--accent-highlight: rgb(25, 25, 25, 4%);
--accent-subtext: rgb(110, 110, 110);
2023-06-25 08:47:34 +01:00
--accent-hover: rgb(230, 230, 230);
--accent-button: rgb(225, 225, 225);
--subbackground: rgb(240, 240, 240);
2022-07-08 19:17:56 +01:00
--background: rgb(255, 255, 255);
}
}
[data-theme="dark"] {
--accent: rgb(225, 225, 225);
--accent-highlight: rgb(225, 225, 225, 4%);
--accent-subtext: rgb(110, 110, 110);
2023-06-25 08:47:34 +01:00
--accent-hover: rgb(30, 30, 30);
--accent-button: rgb(25, 25, 25);
--subbackground: rgb(10, 10, 10);
2022-07-08 19:17:56 +01:00
--background: rgb(0, 0, 0);
}
[data-theme="light"] {
--accent: rgb(25, 25, 25);
2023-06-25 08:47:34 +01:00
--accent-highlight: rgb(25, 25, 25, 4%);
--accent-subtext: rgb(110, 110, 110);
2023-06-25 08:47:34 +01:00
--accent-hover: rgb(230, 230, 230);
--accent-button: rgb(225, 225, 225);
--subbackground: rgb(240, 240, 240);
2022-07-08 19:17:56 +01:00
--background: rgb(255, 255, 255);
}
html,
body {
margin: 0;
background: var(--background);
color: var(--accent);
2023-03-26 05:19:33 +01:00
-webkit-tap-highlight-color: var(--transparent);
font-family: var(--font-mono);
2022-07-08 19:17:56 +01:00
user-select: none;
2023-03-26 05:19:33 +01:00
-webkit-user-select: none;
2022-07-08 19:17:56 +01:00
overflow: hidden;
-ms-overflow-style: none;
scrollbar-width: none;
}
a {
color: var(--accent);
text-decoration: none;
user-select: none;
2023-03-26 05:19:33 +01:00
-webkit-user-select: none;
2022-07-08 19:17:56 +01:00
}
::placeholder {
color: var(--accent-subtext);
2022-07-08 19:17:56 +01:00
}
2022-10-09 18:44:00 +01:00
.switches::-webkit-scrollbar, #popup-content::-webkit-scrollbar {
2022-07-08 19:17:56 +01:00
display: none;
}
:focus-visible {
outline: var(--border-15);
}
2023-04-24 20:01:25 +01:00
.checkbox {
display: inline-flex;
align-items: center;
flex-direction: row;
flex-wrap: nowrap;
padding: calc(var(--gap) - 0.1rem) calc(var(--gap)*2 - 0.2rem) calc(var(--gap) - 0.1rem) var(--gap);
2023-04-24 20:01:25 +01:00
width: auto;
margin-right: var(--padding-1);
margin-bottom: var(--padding-1);
background: var(--accent-button);
2023-04-24 20:01:25 +01:00
}
.checkbox-label {
line-height: 1.3rem;
}
2022-07-08 19:17:56 +01:00
[type="checkbox"] {
-webkit-appearance: none;
appearance: none;
2023-04-24 20:01:25 +01:00
width: 20px;
height: 20px;
2022-07-08 19:17:56 +01:00
z-index: 0;
2023-04-24 20:01:25 +01:00
margin-right: var(--padding-1);
border: 0.15rem solid var(--accent);
2022-07-08 19:17:56 +01:00
}
[type="checkbox"]::before {
content: "";
2023-04-24 20:01:25 +01:00
display: none;
2022-07-08 19:17:56 +01:00
position: relative;
2023-04-24 20:01:25 +01:00
width: 6px;
height: 12px;
z-index: 5;
transform: scaleX(0.9)rotate(45deg);
left: 6px;
top: 1px;
border-bottom: 0.18rem solid var(--background);
border-right: 0.18rem solid var(--background);
2022-07-08 19:17:56 +01:00
}
[type="checkbox"]:checked::before {
2023-04-24 20:01:25 +01:00
display: block;
}
2023-04-24 20:01:25 +01:00
[type="checkbox"]:checked {
2022-07-08 19:17:56 +01:00
background-color: var(--accent);
2023-04-24 20:01:25 +01:00
border: 0;
2022-07-08 19:17:56 +01:00
}
2023-04-24 20:01:25 +01:00
input[type="checkbox"] {
cursor: pointer;
}
2022-07-08 19:17:56 +01:00
button {
background: none;
border: none;
font-family: var(--font-mono);
2022-07-08 19:17:56 +01:00
color: var(--accent);
font-size: 0.9rem;
}
input,
input[type="text"],
[type="text"] {
border-radius: 0;
2022-07-08 19:17:56 +01:00
}
.desktop button:hover,
.desktop .switch:hover,
.desktop .checkbox:hover,
.desktop .text-to-copy:hover,
.desktop .collapse-header:hover,
.desktop #close-button:hover {
2022-07-08 19:17:56 +01:00
background: var(--accent-hover);
box-shadow: 0 0 0 0.1rem var(--accent-highlight) inset;
2022-07-08 19:17:56 +01:00
cursor: pointer;
}
button:active,
.switch:active,
.checkbox:active,
.text-to-copy:active {
box-shadow: 0 0 0 0.1rem var(--accent-highlight) inset;
2022-07-08 19:17:56 +01:00
cursor: pointer;
transform: scale(0.95);
2022-07-08 19:17:56 +01:00
}
.collapse-header:active {
box-shadow: 0 0 0 0.1rem var(--accent-highlight) inset;
}
.switch.text-backdrop,
.switch.text-backdrop:hover,
.switch.text-backdrop:active,
.text-to-copy.text-backdrop,
.text-to-copy.text-backdrop:hover,
.text-to-copy.text-backdrop:active {
background: var(--accent);
color: var(--background);
box-shadow: 0 0 0 0.1rem var(--accent-highlight) inset;
}
2022-10-09 18:44:00 +01:00
.picker-image:active {
2022-09-03 16:32:39 +01:00
cursor: pointer;
transform: scale(0.95);
2022-09-03 16:32:39 +01:00
}
2022-07-08 19:17:56 +01:00
.button {
background: none;
border: var(--border-15);
color: var(--accent);
padding: 0.3rem 0.75rem 0.5rem;
font-size: 1rem;
}
.mono {
font-family: var(--font-mono);
2022-07-08 19:17:56 +01:00
}
.center {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#cobalt-main-box {
position: fixed;
width: 60%;
height: auto;
2023-04-03 17:36:23 +01:00
display: flex;
flex-direction: row;
2022-07-08 19:17:56 +01:00
}
2023-04-03 17:36:23 +01:00
#logo {
2022-07-08 19:17:56 +01:00
text-align: left;
font-size: 1rem;
white-space: nowrap;
2023-04-03 17:36:23 +01:00
width: 7rem;
height: 2.5rem;
align-items: center;
display: flex;
2022-07-08 19:17:56 +01:00
}
#download-area {
2022-09-08 17:02:55 +01:00
display: flex;
flex-direction: column;
width: 100%;
}
#cobalt-main-box #top {
2022-07-08 19:17:56 +01:00
display: inline-flex;
height: 2.5rem;
2022-09-08 17:02:55 +01:00
flex-direction: row;
}
#cobalt-main-box #bottom {
padding-top: 1rem;
2022-09-28 13:21:36 +01:00
display: flex;
flex-direction: row;
justify-content: space-between;
2022-09-08 17:02:55 +01:00
}
2022-07-08 19:17:56 +01:00
.box {
background: var(--background);
border: var(--border-15);
color: var(--accent);
}
#url-input-area {
background: none;
padding: 0 1rem;
2022-07-08 19:17:56 +01:00
width: 100%;
color: var(--accent);
border: 0;
float: right;
border-bottom: 0.1rem solid var(--accent-subtext);
2022-07-08 19:17:56 +01:00
outline: none;
2022-09-08 17:02:55 +01:00
font-size: 0.8rem;
}
#url-clear {
2023-04-03 17:36:23 +01:00
height: 100%;
2022-09-08 17:02:55 +01:00
background: none;
2023-04-03 17:36:23 +01:00
padding: 0 1rem 0.2rem;
2022-09-08 17:02:55 +01:00
transform: none;
2023-04-03 17:36:23 +01:00
font-size: 1rem;
box-shadow: none!important;
2022-07-08 19:17:56 +01:00
}
#url-input-area:focus {
outline: none;
2022-08-04 19:08:26 +01:00
border-bottom: var(--border-10);
2022-07-08 19:17:56 +01:00
}
#download-button {
height: 2.5rem;
color: var(--accent);
background: none;
border: none;
2022-09-08 17:02:55 +01:00
font-size: 1.6rem;
2022-07-08 19:17:56 +01:00
cursor: pointer;
padding: 0;
2022-09-08 17:02:55 +01:00
letter-spacing: -0.36rem;
2022-07-08 19:17:56 +01:00
}
#download-button:disabled {
color: var(--accent-subtext);
2022-07-08 19:17:56 +01:00
cursor: not-allowed;
}
#footer {
2022-09-28 13:21:36 +01:00
bottom: 0.8rem;
2022-07-08 19:17:56 +01:00
position: absolute;
left: 50%;
transform: translate(-50%, -50%);
font-size: 0.9rem;
text-align: center;
2022-09-08 17:02:55 +01:00
width: auto;
2022-07-08 19:17:56 +01:00
}
2022-09-28 13:21:36 +01:00
#cobalt-main-box #bottom,
#footer-buttons,
#footer-buttons, .footer-pair {
2023-04-03 17:36:23 +01:00
gap: var(--gap);
2022-09-28 13:21:36 +01:00
}
2022-09-08 17:02:55 +01:00
#footer-buttons, .footer-pair {
display: flex;
flex-direction: row;
align-items: center;
}
2022-07-08 19:17:56 +01:00
.footer-button {
2022-09-08 17:02:55 +01:00
width: auto!important;
color: var(--accent-subtext);
2023-04-03 17:36:23 +01:00
padding: var(--gap) 1.2rem!important;
align-content: center;
2022-07-08 19:17:56 +01:00
}
2022-10-02 15:13:33 +01:00
.notification-dot {
width: 8px;
height: 8px;
background: var(--red);
margin-right: 0.4rem;
border-radius: 99rem;
}
2022-07-08 19:17:56 +01:00
.text-backdrop {
background: var(--accent);
color: var(--background);
}
.italic {
font-style: italic;
}
.cobalt-support-link {
display: flex;
flex-direction: row;
justify-content: flex-start;
gap: 0.3rem;
margin-top: 0.5rem;
user-select: none;
2023-03-26 05:19:33 +01:00
-webkit-user-select: none;
2022-07-08 19:17:56 +01:00
}
::-moz-selection {
background-color: var(--accent);
color: var(--background);
}
::selection {
background-color: var(--accent);
color: var(--background);
}
.popup {
visibility: hidden;
position: fixed;
height: auto;
2022-10-02 15:13:33 +01:00
width: 32%;
2022-07-08 19:17:56 +01:00
z-index: 999;
2023-01-15 10:51:37 +00:00
padding: 2rem;
2022-07-08 19:17:56 +01:00
font-size: 0.9rem;
2023-01-15 10:51:37 +00:00
max-height: 85%;
2022-07-08 19:17:56 +01:00
}
.popup.small {
width: 20%
}
2022-07-08 19:17:56 +01:00
#popup-backdrop {
opacity: 0.5;
background-color: var(--background);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 998;
}
.popup.scrollable {
2023-01-15 10:51:37 +00:00
height: 85%;
2022-07-08 19:17:56 +01:00
}
.scrollable .bottom-link {
padding-bottom: 2rem;
}
.changelog-subtitle {
font-size: 1.1rem;
padding-bottom: var(--gap-no-icon);
}
.changelog-banner {
width: 100%;
max-height: 300px;
2023-06-07 16:56:35 +01:00
min-height: 160px;
margin-bottom: 1.65rem;
2022-12-06 19:21:07 +00:00
float: left;
}
.changelog-img {
object-fit: cover;
width: inherit;
height: inherit;
max-height: inherit;
}
2022-07-08 19:17:56 +01:00
.nowrap {
white-space: nowrap;
}
.no-top-padding {
padding-top: 0!important;
}
.desc-padding {
2022-07-08 19:17:56 +01:00
padding-bottom: 1.5rem;
}
#popup-subtitle {
2022-07-08 19:17:56 +01:00
font-size: 1.1rem;
padding-bottom: var(--padding-1);
2022-07-08 19:17:56 +01:00
}
#popup-desc,
2022-09-08 17:02:55 +01:00
#desc-error,
#popup-info-desc {
2022-07-08 19:17:56 +01:00
width: 100%;
text-align: left;
float: left;
line-height: var(--line-height);
2022-08-16 11:31:41 +01:00
user-select: text;
2023-03-26 05:19:33 +01:00
-webkit-user-select: text;
2022-07-08 19:17:56 +01:00
}
#popup-title {
2022-07-08 19:17:56 +01:00
font-size: 1.5rem;
margin-bottom: 0.5rem;
line-height: 1.85em;
display: flex;
align-items: center;
2022-07-08 19:17:56 +01:00
}
#popup-footer {
2022-07-08 19:17:56 +01:00
bottom: 0;
position: fixed;
margin-bottom: 1.5rem;
background: var(--background);
width: var(--without-padding);
}
.popup-footer-content {
font-size: 0.8rem;
line-height: var(--line-height);
color: var(--accent-subtext);
border-top: 0.05rem solid var(--accent-subtext);
2022-07-08 19:17:56 +01:00
padding-top: 0.4rem;
}
#popup-above-title {
color: var(--accent-subtext);
2022-07-08 19:17:56 +01:00
font-size: 0.8rem;
}
#popup-content {
2022-07-08 19:17:56 +01:00
overflow-x: hidden;
overflow-y: auto;
height: var(--without-padding);
scrollbar-width: none;
}
2022-12-06 19:21:07 +00:00
.bullpadding {
padding-left: 0.58rem;
}
#popup-header {
2022-07-08 19:17:56 +01:00
position: relative;
background: var(--background);
z-index: 999;
2023-01-15 10:51:37 +00:00
padding-top: 0.8rem;
2022-07-08 19:17:56 +01:00
}
#popup-content.with-footer {
2022-07-08 19:17:56 +01:00
margin-bottom: 3rem;
}
.settings-category {
padding-bottom: 1rem;
2022-07-08 19:17:56 +01:00
}
2022-11-15 17:37:33 +00:00
.separator {
float: left;
}
.separator,
.category-title {
2022-07-08 19:17:56 +01:00
width: 100%;
color: var(--accent-subtext);
border-bottom: 0.05rem solid var(--accent-subtext);
2022-07-08 19:17:56 +01:00
padding-bottom: 0.25rem;
margin-bottom: calc(var(--gap-no-icon)*1.5);
2022-07-08 19:17:56 +01:00
}
2022-11-15 17:37:33 +00:00
.category-title {
text-align: left;
line-height: var(--line-height);
2022-11-15 17:37:33 +00:00
}
.bottom-margin {
margin-bottom: var(--padding-1)!important;
2022-09-28 13:21:36 +01:00
}
.top-margin {
margin-top: var(--padding-1)!important;
}
.top-margin-only {
margin-top: var(--padding-1)!important;
margin-bottom: 0!important;
2022-09-28 13:21:36 +01:00
}
.no-margin {
margin: 0!important;
}
2022-07-08 19:17:56 +01:00
.switch-container {
width: 100%;
}
.subtitle {
width: 100%;
text-align: left;
line-height: var(--line-height);
2022-07-08 19:17:56 +01:00
padding-bottom: 0.4rem;
color: var(--accent);
}
.small-padding .subtitle {
margin-top: 0.5rem;
}
2022-07-08 19:17:56 +01:00
.explanation {
margin-top: 0.8rem;
2022-07-08 19:17:56 +01:00
width: 100%;
font-size: 0.8rem;
text-align: left;
line-height: 1.3rem!important;
color: var(--accent-subtext);
2022-07-08 19:17:56 +01:00
}
.subtext {
color: var(--accent-subtext);
}
2022-07-08 19:17:56 +01:00
.switch {
padding: var(--gap-no-icon);
2022-07-08 19:17:56 +01:00
width: 100%;
2023-04-03 17:36:23 +01:00
text-align: left;
2022-07-08 19:17:56 +01:00
color: var(--accent);
background: var(--accent-button);
display: flex;
justify-content: center;
2022-07-08 19:17:56 +01:00
align-items: center;
cursor: pointer;
}
.switch.space-right {
margin-right: var(--padding-1);
}
2022-07-08 19:17:56 +01:00
.switch[data-enabled="true"] {
color: var(--background);
background: var(--accent);
cursor: default;
2022-09-28 13:21:36 +01:00
z-index: 999
2022-07-08 19:17:56 +01:00
}
.switch[data-enabled="true"]:hover {
background: var(--accent);
}
2022-07-08 19:17:56 +01:00
.switches {
display: flex;
width: auto;
flex-direction: row;
flex-wrap: nowrap;
overflow-x: scroll;
scrollbar-width: none;
}
.switches .switch {
padding-left: calc(var(--gap-no-icon) + 0.1rem);
padding-right: calc(var(--gap-no-icon) + 0.1rem);
}
#popup-settings .switches .switch {
text-align: center;
}
.autowidth {
width: auto;
}
.bottom-space {
margin-bottom: 2rem;
2022-07-08 19:17:56 +01:00
}
.text-to-copy {
user-select: text;
2023-03-26 05:19:33 +01:00
-webkit-user-select: text;
background: var(--accent-button);
padding: var(--padding-1);
2022-07-08 19:17:56 +01:00
overflow: auto;
}
#close-button {
max-width: 2.6rem;
margin-left: var(--padding-1);
background: var(--background);
border: var(--border-15);
color: var(--accent);
padding: 0.3rem 0.75rem 0.5rem;
}
#close-button.up {
float: right;
position: absolute;
right: 0;
height: 2.6rem;
}
.popup-tab-content {
display: none;
}
#popup-tabs {
z-index: 999;
bottom: 0;
position: relative;
width: 100%;
}
.popup-tabs {
margin-top: 0.9rem;
}
.emoji {
margin-right: 0.4rem;
user-select: none;
2023-03-26 05:19:33 +01:00
-webkit-user-select: none;
2023-03-26 05:24:02 +01:00
pointer-events: none;
}
2022-10-09 18:44:00 +01:00
.picker-image {
2022-09-03 16:32:39 +01:00
object-fit: cover;
width: inherit;
height: inherit;
cursor: pointer;
2022-09-03 16:32:39 +01:00
}
2022-10-09 18:44:00 +01:00
.picker-image-container {
2022-09-03 16:32:39 +01:00
width: 8rem;
height: 8rem;
margin-bottom: var(--padding-1);
background-color: var(--accent-button);
2022-09-03 16:32:39 +01:00
}
2022-10-09 18:44:00 +01:00
.picker-various-container {
height: 20rem;
width: 25rem;
margin-bottom: var(--padding-1);
background-color: var(--accent-button);
border: var(--accent-button) 0.18rem solid;
2022-10-09 18:44:00 +01:00
position: relative;
}
#picker-holder {
2022-09-03 16:32:39 +01:00
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-content: space-around;
}
2022-10-09 18:44:00 +01:00
#picker-holder.various {
justify-content: left;
flex-wrap: unset;
overflow-x: scroll;
gap: 2rem;
}
.imageBlock {
height: 100%;
width: 100%;
position: absolute;
z-index: 9999;
}
.picker-element-name {
position: absolute;
background: var(--background);
color: var(--accent);
2023-04-03 17:36:23 +01:00
padding: 0.3rem var(--gap);
2022-10-09 18:44:00 +01:00
font-size: 0.8rem;
opacity: 0.7;
margin: 0.4rem;
}
#popup-picker .explanation {
margin-top: 0!important;
margin-bottom: var(--padding-1);
}
#cobalt-main-box #bottom button {
width: auto;
2023-04-03 17:36:23 +01:00
padding: var(--gap) 1.2rem;
}
.collapse-list {
background: var(--subbackground);
user-select: none;
2023-03-26 05:19:33 +01:00
-webkit-user-select: none;
}
.collapse-header {
padding: var(--padding-1);
font-size: 1rem;
display: flex;
flex-direction: row;
align-items: center;
cursor: pointer;
background: var(--accent-button);
}
.collapse-indicator {
transform: rotate(180deg);
}
.expanded .collapse-indicator {
transform: none;
}
.collapse-title {
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
gap: 0.8rem;
}
.collapse-body {
display: none;
padding: var(--padding-1);
user-select: text;
2023-03-26 05:19:33 +01:00
-webkit-user-select: text;
}
.expanded .collapse-body {
display: block;
}
#download-switcher .switches {
gap: var(--gap);
}
#pd-share {
display: none;
2022-09-03 16:32:39 +01:00
}
#about-donate-footer {
box-shadow: 0 0 0 0.1rem var(--accent) inset;
}
.popup-tabs-child {
width: 100%;
}
.urgent-notice {
top: 1.7rem;
width: auto;
text-align: left;
position: absolute;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
2022-07-08 19:17:56 +01:00
/* adapt the page according to screen size */
@media screen and (min-width: 2300px) {
html {
zoom: 130%;
}
}
@media screen and (min-width: 3840px) {
html {
zoom: 180%;
}
}
@media screen and (min-width: 5000px) {
html {
zoom: 300%;
}
}
@media screen and (max-width: 1550px) {
.popup.small {
width: 25%
}
2022-10-02 15:13:33 +01:00
.popup {
width: 35%;
}
}
2022-07-08 19:17:56 +01:00
@media screen and (max-width: 1440px) {
#cobalt-main-box {
2022-07-08 19:17:56 +01:00
width: 65%;
}
.popup.small {
width: 30%
}
.popup {
width: 40%;
2022-07-08 19:17:56 +01:00
}
}
2022-10-02 15:13:33 +01:00
@media screen and (max-width: 1300px) {
.popup {
width: 46%;
}
}
@media screen and (max-width: 1200px) {
#cobalt-main-box {
width: 70%;
}
.popup.small {
width: 35%
}
.popup {
width: 50%;
}
}
@media screen and (max-width: 1025px) {
#cobalt-main-box {
2022-07-08 19:17:56 +01:00
width: 75%;
}
.popup.small {
width: 40%
}
.popup {
width: 60%;
2022-07-08 19:17:56 +01:00
}
}
2022-10-09 18:44:00 +01:00
@media screen and (max-height: 605px) {
.popup {
2022-07-08 19:17:56 +01:00
height: 80%
}
.popup.small {
height: auto;
}
.bottom-link {
padding-bottom: 2rem;
}
2022-07-08 19:17:56 +01:00
}
/* mobile page */
@media screen and (max-width: 720px) {
2022-09-08 17:02:55 +01:00
#cobalt-main-box, #footer {
width: 90%;
2022-07-08 19:17:56 +01:00
}
}
@media screen and (max-width: 499px) {
.tab {
2022-10-09 18:44:00 +01:00
font-size: 0!important;
}
.tab .emoji {
margin-right: 0;
}
2022-09-08 17:02:55 +01:00
#cobalt-main-box, #footer {
width: 90%;
}
.checkbox {
width: calc(100% - 1.3rem);
}
}
2022-09-08 17:02:55 +01:00
@media screen and (max-width: 320px) {
:root {
--gap: 0.38rem;
--gap-no-icon: 0.38rem;
--line-height: 1.2rem;
}
2022-10-09 18:44:00 +01:00
#popup-title {
font-size: 1.07rem;
line-height: 1.5rem;
2022-10-09 18:44:00 +01:00
}
.checkbox {
width: calc(100% - 1rem);
}
2023-04-03 17:36:23 +01:00
.footer-button,
#audioMode-false,
#audioMode-true,
#paste {
2022-10-09 18:44:00 +01:00
font-size: 0!important;
2022-09-08 17:02:55 +01:00
}
2023-04-03 17:36:23 +01:00
.footer-button .emoji,
#audioMode-false .emoji,
#audioMode-true .emoji,
#paste .emoji {
margin-right: 0;
}
.switch,
.checkbox,
.category-title,
.subtitle,
#popup-desc,
.collapse-title {
font-size: .7rem;
}
.collapse-header {
padding: 0.5rem;
}
#popup-above-title,
#url-input-area {
font-size: 0.6rem;
2022-10-09 18:44:00 +01:00
}
.explanation {
font-size: .6rem;
margin-top: 0.5rem;
line-height: 1rem!important;
2022-09-08 17:02:55 +01:00
}
2022-10-09 18:44:00 +01:00
#popup-desc {
line-height: 1.2rem;
font-size: .64rem;
2022-10-09 18:44:00 +01:00
}
.changelog-subtitle, #popup-subtitle {
font-size: 0.8rem!important;
2022-10-09 18:44:00 +01:00
}
.category-title {
margin-bottom: 0.8rem;
}
.emoji {
height: 18px;
width: 18px;
}
.desc-padding {
padding-bottom: 0.8rem;
}
#logo {
font-size: 0.8rem;
}
.popup,
.popup.scrollable,
.popup.small {
height: 98%;
}
[type=checkbox] {
width: 15px;
height: 15px;
border: 0.12rem solid var(--accent);
}
[type=checkbox]:before {
transform: scaleY(.8)scaleX(.7)rotate(45deg);
left: 3.4px;
top: -2px;
}
2022-09-08 17:02:55 +01:00
}
@media screen and (max-width: 720px) {
#cobalt-main-box #bottom {
2023-04-03 17:36:23 +01:00
flex-direction: column-reverse;
}
2023-04-03 17:36:23 +01:00
#cobalt-main-box #bottom button {
width: 100%;
2022-09-08 17:02:55 +01:00
}
#footer {
bottom: 4.9%;
2022-09-08 17:02:55 +01:00
transform: translate(-50%, 0%);
}
#footer-buttons {
flex-direction: column;
align-items: stretch;
}
.footer-pair .footer-button {
width: 100%!important;
}
2023-04-03 17:36:23 +01:00
#logo {
width: 100%;
2023-04-03 17:36:23 +01:00
height: auto;
justify-content: center;
}
#cobalt-main-box {
display: flex;
border: none;
padding: 0;
2023-04-03 17:36:23 +01:00
flex-direction: column;
gap: var(--gap);
}
.urgent-notice {
width: 100%;
}
}
@media screen and (max-width: 949px) {
#picker-holder::-webkit-scrollbar {
display: none;
}
#picker-holder.various {
flex-wrap: wrap;
align-content: left;
gap: 0;
overflow-x: hidden;
overflow-y: scroll;
}
.picker-various-container {
width: 100%;
height: 20rem;
max-width: 100%;
}
2023-01-15 10:51:37 +00:00
#popup-header {
padding-top: 1.2rem;
}
#popup-settings #popup-header {
padding-top: 0.8rem;
}
2022-10-09 18:44:00 +01:00
.picker-image-container {
2022-09-03 16:32:39 +01:00
height: 7rem;
width: 7rem;
line-height: 7rem;
}
#close-error {
bottom: 3rem;
position: absolute;
width: var(--without-padding);
}
.popup, .popup.scrollable, .popup.small {
2022-07-08 19:17:56 +01:00
border: none;
width: 90%;
2023-01-15 10:51:37 +00:00
height: 95%;
2022-07-08 19:17:56 +01:00
max-height: 100%;
}
.bottom-link {
padding-bottom: 2rem;
}
2023-01-15 10:51:37 +00:00
.popup-tabs {
margin-top: .3rem;
}
}
2022-09-03 16:32:39 +01:00
@media screen and (max-width: 400px) {
.popup-title {
line-height: inherit;
}
2022-10-09 18:44:00 +01:00
.picker-image-container {
2022-09-03 16:32:39 +01:00
line-height: 6rem;
height: 6rem;
width: 6rem;
}
}