ThunderAI/pages/onboarding/onboarding.css

256 lines
No EOL
4.9 KiB
CSS

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* Portions Copyright (C) Philipp Kewisch
* This is a modified version of the original file of Quick Folder Move:
* https://github.com/kewisch/quickmove-extension/blob/v3.1.0/src/onboarding/onboarding.html */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
color-scheme: light dark;
background-color: light-dark(#f4f4f4, #151516);
color: light-dark(#666, #f4f4f5);
}
body {
font-family: sans-serif;
line-height: 1.6;
width: 960px;
margin: 0 auto;
padding: 20px;
font-size: 18px;
}
body.platform-mac .platform-default,
body:not(.platform-mac) .platform-mac {
display: none;
}
h1,
h2 {
color: light-dark(#333, #fff);
}
.content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 2em;
padding: 2em;
background: light-dark(#fff, #27272a);
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
border-radius: 10px;
position: relative;
}
.section {
justify-content: space-between;
align-items: start;
width: 100%;
margin-bottom: 2em;
text-align: left;
padding: 1ex 0 0;
}
.section:not(:last-child) {
border-bottom: 1px solid #c4c4c4;
padding: 1ex 0;
}
.section.header,
.section.footer {
flex-direction: column;
z-index: 1;
position: relative;
}
.title-icon{
margin-right: 20px;
position: relative;
top: 12px;
}
.section.image-right img {
float: right;
margin: 15px 0 35px 35px;
}
.section.image-left img {
float: left;
margin: 15px 35px 45px 0;
}
.section ul {
padding-inline-start: 2em;
}
.section.image-left ul {
padding-inline-start: calc(50% + 2em);
}
.clear {
clear: both;
}
.section > img {
border-radius: 10px;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
margin-top: 15px;
}
.section p.warning {
border: 1px solid #eed936;
background: #fff7b8;
border-radius: 3px;
padding-inline-start: 90px;
padding-top: 4px;
padding-bottom: 4px;
position: relative;
}
.section p.warning::before {
content: "⚠️";
font-size: 50px;
display: block;
position: absolute;
top: calc(50% - 0.5em);
left: 20px;
line-height: 1;
}
.section p {
color: light-dark(#666, #ddd);
}
.section p.donatebutton {
text-align: center;
width: 100%;
margin-top: 3ex;
}
.section p.donatebutton .button {
padding: 20px;
border-radius: 30px;
}
.section p.donatebutton .button .icon-box {
background-color: light-dark(#fff, #27272a);
padding: 7px 5px 3px;
border-radius: 20px;
}
.section form {
display: flex;
flex-direction: column;
width: 90%;
margin: 0 auto 1em;
}
.section input[type="text"] {
padding: 10px;
margin-bottom: 1em;
border: 1px solid #ddd;
border-radius: 5px;
}
.section input[type="radio"] {
width: 16px;
height: 16px;
}
.section input[type="submit"],
.section .button {
padding: 10px;
color: #fff;
background-color: #0a84ff;
border: none;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
transition:
0.3s background-color,
0.3s box-shadow,
0.3s margin;
}
.section .button:hover {
box-shadow: inset 4px 2px 5px rgba(0, 0, 0, 0.3);
}
.section .button img {
vertical-align: middle;
}
.section .button:active {
box-shadow: inset 5px 2px 5px rgba(0, 0, 0, 0.3);
}
#chatgpt_web_permission, #anthropic_api_permission, #openai_api_permission {
display: none;
background-color: red;
color: white;
padding: 10px;
border-radius: 5px;
margin: 10px 0;
font-size: 18px;
font-weight: bold;
text-align: center;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
#chatgpt_web_permission:hover, #anthropic_api_permission:hover, #openai_api_permission:hover {
background-color: darkred;
transform: scale(1.05);
}
#integration_permission_ok {
display: none;
background-color: green;
color: white;
padding: 10px;
border-radius: 5px;
margin: 10px 0;
font-size: 18px;
font-weight: bold;
text-align: center;
cursor: pointer;
}
#integration_permission_ok:hover {
background-color: darkgreen;
transform: scale(1.05);
}
#onboarding_doc_panel {
position: absolute;
top: 20px;
right: 20px;
z-index: 100;
display: flex;
flex-direction: column;
gap: 8px;
padding: 14px 18px;
background: light-dark(#fff, #303036);
border-radius: 10px;
box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.18);
font-size: 15px;
min-width: 170px;
}
#onboarding_doc_panel .doc_panel_title {
font-weight: bold;
color: light-dark(#333, #fff);
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 2px;
border-bottom: 1px solid light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.1));
padding-bottom: 6px;
}
#onboarding_doc_panel a {
color: #0a84ff;
text-decoration: none;
}
#onboarding_doc_panel a:hover {
text-decoration: underline;
}