mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-29 07:21:14 +03:00
387 lines
6.1 KiB
CSS
387 lines
6.1 KiB
CSS
/* CSS Reset and Base Styles */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family-main, sans-serif);
|
|
line-height: 1.6;
|
|
-webkit-font-smoothing: antialiased;
|
|
background: var(--tan);
|
|
color: var(--gray);
|
|
cursor: crosshair;
|
|
}
|
|
|
|
img,
|
|
picture,
|
|
video,
|
|
canvas,
|
|
svg {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
/* Variables */
|
|
:root {
|
|
--noise: url("data:image/svg+xml,%3C!-- svg: first layer --%3E%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
|
|
--orange: #FF4F00;
|
|
--dark-orange: #cc4100;
|
|
--blue: #2B88D9;
|
|
--off-white: #fdfdfd;
|
|
--white: #ffffff;
|
|
--off-black: #0C090A;
|
|
--black: #000000;
|
|
--tan: #fdf6e3;
|
|
--ansi-red: #dc322f;
|
|
--gray: #657b83;
|
|
}
|
|
|
|
/* Typography */
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
p,
|
|
label,
|
|
li {
|
|
color: var(--gray);
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
a {
|
|
color: var(--blue);
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--orange);
|
|
text-decoration: underline wavy;
|
|
}
|
|
|
|
/* Layout */
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* Sections */
|
|
.section {
|
|
background-color: var(--white);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
padding: 2rem;
|
|
margin-bottom: 2rem;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.section:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
/* Forms */
|
|
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.form-label {
|
|
margin-bottom: 0.5rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.form-input {
|
|
padding: 0.75rem;
|
|
border: 2px solid var(--orange);
|
|
border-radius: 4px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--dark-orange);
|
|
box-shadow: 0 0 0 3px rgba(255, 79, 0, 0.2);
|
|
}
|
|
|
|
/* Button styles */
|
|
.button {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
background-color: var(--orange);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: var(--dark-orange);
|
|
}
|
|
|
|
.button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.button.secondary {
|
|
background-color: white;
|
|
color: var(--orange);
|
|
border: 2px solid var(--orange);
|
|
}
|
|
|
|
.button.secondary:hover {
|
|
background-color: var(--orange);
|
|
color: white;
|
|
}
|
|
|
|
/* tooltips */
|
|
.tooltip {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.tooltip-text {
|
|
visibility: hidden;
|
|
width: 200px;
|
|
background-color: #555;
|
|
color: #fff;
|
|
text-align: center;
|
|
border-radius: 6px;
|
|
padding: 5px;
|
|
position: absolute;
|
|
z-index: 1;
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.tooltip-top .tooltip-text {
|
|
bottom: 125%;
|
|
left: 50%;
|
|
margin-left: -100px;
|
|
}
|
|
|
|
.tooltip-bottom .tooltip-text {
|
|
top: 125%;
|
|
left: 50%;
|
|
margin-left: -100px;
|
|
}
|
|
|
|
.tooltip:hover .tooltip-text {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.section {
|
|
background-color: var(--white);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
padding: 2rem;
|
|
}
|
|
|
|
.content {
|
|
text-align: center;
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.mb-2 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.mt-2 {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.header {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
padding: 1rem;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.connect-wallet {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.container {
|
|
padding-top: 4rem;
|
|
/* Add some top padding to account for the fixed header */
|
|
}
|
|
|
|
.enter-kns-name {
|
|
width: 100%;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.input-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.kns-input {
|
|
flex-grow: 1;
|
|
padding: 0.5rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px 0 0 4px;
|
|
}
|
|
|
|
.kns-suffix {
|
|
padding: 0.5rem;
|
|
background-color: #f0f0f0;
|
|
border: 1px solid #ccc;
|
|
border-left: none;
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.error-message {
|
|
color: #ff0000;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.direct-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.checkbox-container {
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
padding-left: 35px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
user-select: none;
|
|
}
|
|
|
|
.checkbox-container input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
height: 0;
|
|
width: 0;
|
|
}
|
|
|
|
.checkmark {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 25px;
|
|
width: 25px;
|
|
background-color: #eee;
|
|
border: 2px solid var(--orange);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.checkbox-container:hover input~.checkmark {
|
|
background-color: #ccc;
|
|
}
|
|
|
|
.checkbox-container input:checked~.checkmark {
|
|
background-color: var(--orange);
|
|
}
|
|
|
|
.checkmark:after {
|
|
content: "";
|
|
position: absolute;
|
|
display: none;
|
|
}
|
|
|
|
.checkbox-container input:checked~.checkmark:after {
|
|
display: block;
|
|
}
|
|
|
|
.checkbox-container .checkmark:after {
|
|
left: 9px;
|
|
top: 5px;
|
|
width: 5px;
|
|
height: 10px;
|
|
border: solid white;
|
|
border-width: 0 3px 3px 0;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.checkbox-label {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.file-input-label {
|
|
display: inline-block;
|
|
}
|
|
|
|
.file-input {
|
|
display: none;
|
|
}
|
|
|
|
.file-input-label .button {
|
|
display: inline-block;
|
|
margin: 0;
|
|
padding: 0.3rem 0.8rem;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.file-input-label:hover .button {
|
|
background-color: var(--dark-orange);
|
|
color: white;
|
|
} |