cssformalize
Version:
CSSformalize is a groundbreaking CSS framework for effortless customization of native HTML forms. Fully customizable with CSS variables, requires no JavaScript.
1,405 lines (1,319 loc) • 29 kB
CSS
:root {
--demo-border-radius: 15px;
--demo-boxs-shadow: 1.4px 1.7px 1.8px rgba(0, 0, 0, 0.005), 3.1px 3.9px 4px rgba(0, 0, 0, 0.007),
5.4px 6.8px 7px rgba(0, 0, 0, 0.009), 8.6px 10.8px 11.1px rgba(0, 0, 0, 0.01), 13.3px 16.6px 17.2px rgba(0, 0, 0, 0.011),
20.8px 25.9px 26.8px rgba(0, 0, 0, 0.013), 34.5px 43px 44.5px rgba(0, 0, 0, 0.015), 69px 86px 89px rgba(0, 0, 0, 0.02);
--demo-boxs-shadow-2: -1.4px 1.7px 1.8px rgba(0, 0, 0, 0.005), -3.1px 3.9px 4px rgba(0, 0, 0, 0.007),
-5.4px 6.8px 7px rgba(0, 0, 0, 0.009), -8.6px 10.8px 11.1px rgba(0, 0, 0, 0.01), -13.3px 16.6px 17.2px rgba(0, 0, 0, 0.011),
-20.8px 25.9px 26.8px rgba(0, 0, 0, 0.013), -34.5px 43px 44.5px rgba(0, 0, 0, 0.015), -69px 86px 89px rgba(0, 0, 0, 0.02);
--demo-gradient: linear-gradient(120deg, #fe0986 0%, #a219d8 100%);
--demo-gradient-2: linear-gradient(120deg, #09f6fe 0%, #24be7d 100%);
--demo-text-color: rgba(71, 85, 105, 0.77);
}
*,
*:before,
*:after {
margin: 0;
padding: 0;
box-sizing: border-box ;
}
html {
font-family: "Lato", sans-serif;
}
html,
body {
min-height: 100dvh;
}
.demo {
padding: 0;
margin: 0;
background: #ebedf1;
}
.active-css-code-sidebar .page-right,
.active-left-sidebar .page-right {
overflow: hidden ;
}
.circles {
max-height: 100vh;
max-width: 100vw;
width: 100vw;
height: 100vh;
overflow: hidden;
z-index: -1;
position: absolute;
}
.sidebar {
--cform-checkbox-width: 20px;
--cform-accent-color: #fff;
--cform-radius: 50em;
}
.sidebar-option {
--cform-bg: rgba(158, 142, 142, 0.3);
--cform-border-width: 0px;
--cform-accent: #b09c9c;
--cform-padding: 2px;
--cform-checkbox-width: 26px;
--cform-radius: 20px;
--cform-font-size: 16px;
--cform-border-width-focus: 3px;
--cform-border-blur: 0px;
--demo-bg: #865f5f;
--cform-error: #e86f6f;
--cform-text-placeholder-color: #97a3ae;
--cform-border-color: #000;
--cform-border-focus-color: #9db2bf;
--cform-focus-bg: var(--cform-bg);
--cform-text-color: #526d82;
}
.customize-description {
padding: 20px 20px 0px;
text-wrap: balance;
font-size: 18px;
color: var(--demo-text-color);
text-align: center;
}
.customize-description .home-link {
text-align: left;
}
.customize-description a {
text-align: left;
font-size: 16px;
text-decoration: none;
border-bottom: 1px dashed var(--demo-text-color);
color: var(--demo-text-color);
}
.customize-description h2 {
margin-top: 20px;
font-size: 24px;
filter: brightness(70%);
}
.customize-description ul {
text-align: left;
padding-left: 40px;
}
.customize-description p {
margin-top: 30px;
font-size: 15px;
}
.code-sidebar {
flex-basis: 350px;
max-height: 100svh;
padding-top: 20px;
flex-shrink: 0;
}
.code-sidebar .code-sidebar-in {
max-height: 100%;
overflow: auto;
}
.code-sidebar .code-sidebar-title {
font-size: 24px;
height: 42px;
line-height: 28px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 10px;
font-weight: 300;
color: var(--demo-text-color);
padding-left: 10px;
}
.code-sidebar .code-sidebar-desc {
font-size: 16px;
line-height: 22px;
margin-bottom: 20px;
font-weight: 400;
color: var(--demo-text-color);
padding: 0 10px;
}
.code-sidebar .code-container {
width: 100%;
font-size: 12px ;
display: flex;
flex-direction: column;
gap: 20px;
}
.code-sidebar .code .code-title {
color: var(--demo-text-color);
margin-bottom: 5px;
font-size: 12px;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
display: block;
}
.code-sidebar .code .code-toolbar {
display: block;
}
.code-sidebar pre[class*=language-html],
.code-sidebar code[class*=language-html] {
white-space: normal ;
overflow: auto ;
word-break: break-word ;
}
.copy-to-clipboard-button {
background: var(--demo-gradient) ;
color: #fff ;
box-shadow: unset ;
display: block ;
font-size: 12px ;
padding: 2px 4px 3px ;
line-height: 1 ;
}
.sidebar {
flex-basis: 350px;
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 20px;
padding: 20px 20px 20px 20px;
max-height: 100svh;
order: -1;
--cform-accent-color: #fff ;
--cform-text-placeholder-color: #fff ;
}
.sidebar .sidebar-content {
overflow: hidden;
padding: 10px;
background: rgba(255, 255, 255, 0.5);
flex: 1;
-webkit-backdrop-filter: blur(50px);
backdrop-filter: blur(50px);
position: relative;
border-radius: var(--demo-border-radius);
display: flex;
flex-direction: column;
}
.sidebar .sidebar-in {
padding: 0;
max-height: 100%;
overflow: hidden;
display: flex;
flex: 1;
flex-direction: column;
}
.sidebar .sidebar-in .sidebar-wrap {
overflow: auto;
flex: 1;
padding-right: 10px;
}
.sidebar .sidebar-in .options-footer {
flex-shrink: 0;
}
.sidebar .sidebar-options {
display: flex;
flex-direction: column;
gap: 5px;
padding: 10px 0px 10px 0px;
}
.sidebar .show-changed,
.sidebar .meta-dark {
display: flex;
align-items: center;
color: var(--demo-text-color);
gap: 10px;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
padding-left: 10px;
margin-bottom: 10px;
}
.sidebar .show-changed .cform-switch,
.sidebar .meta-dark .cform-switch {
padding: 0;
}
.sidebar .show-changed .cform-switch + label,
.sidebar .meta-dark .cform-switch + label {
font-size: 14px;
cursor: pointer;
transform: translateY(-2px);
}
.sidebar .show-changed {
padding-left: 0;
}
.code-sidebar:has(.language-html:empty) .code-html {
display: none;
}
header {
position: relative;
padding: 0 20px 20px;
overflow: hidden;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
background: rgba(255, 255, 255, 0.5);
border-radius: var(--demo-border-radius);
box-shadow: var(--demo-box-shadow);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
}
header .header-content {
display: flex;
gap: 50px;
width: 75%;
margin: 40px auto 0;
color: var(--demo-text-color);
}
header .header-content strong {
background: var(--demo-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
header .header-content .keys {
margin: 50px auto 0;
width: 70%;
opacity: 0.7;
}
header .header-content ul {
margin: 15px auto 0;
width: 70%;
}
header .header-content ul li {
margin-top: 15px;
line-height: 20px;
font-size: 16px;
}
header .header-content ul li strong {
background: var(--demo-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
header .header-content .header-left {
flex: 4;
}
.site-title {
display: flex;
gap: 10px;
margin-top: 20px;
flex-direction: column;
justify-content: center;
align-items: center;
}
h2 {
color: var(--demo-text-color);
font-size: 24px;
text-wrap: balance;
font-weight: 300;
}
.version {
color: var(--demo-text-color);
font-weight: bold;
}
.description {
margin: 30px 0px auto;
font-size: 18px;
line-height: 1.3;
font-weight: 400;
text-align: center;
text-wrap: balance;
}
.theme-buttons {
display: flex;
flex-wrap: wrap;
gap: 10px;
width: 100%;
margin-top: 20px;
align-items: center;
justify-content: center;
}
.theme-buttons .cform-btn {
font-size: 14px;
--cform-font-size: 14px;
--cform-info-color: var(--demo-text-color);
--cform-btn-info: rgba(255, 255, 255, 0.8);
--cform-padding: 5px;
}
.theme-buttons .cform-btn:hover, .theme-buttons .cform-btn:active {
--cform-btn-info: rgba(255, 255, 255, 1);
background: var(--cform-btn-info);
}
.forms-wrap {
flex: 1 1 0;
display: flex;
gap: 40px;
padding-bottom: 100px;
flex-direction: column;
}
.form-wrap {
display: flex;
flex-direction: column;
background: rgba(255, 255, 255, 0.8);
overflow: hidden;
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
border-radius: var(--demo-border-radius);
}
.form-wrap > * {
flex: 1;
}
.forms-item {
padding: 20px;
}
.forms-item > * {
margin-bottom: 10px;
}
.forms-item > *:last-child:not([type=radio]) {
margin-bottom: 0;
}
.forms-item-in {
display: flex;
gap: 15px;
background: var(--demo-bg);
margin-left: -20px;
padding: 20px;
width: calc(100% + 40px);
align-items: flex-start;
}
.forms-item-in-btns {
display: flex;
flex-direction: column;
margin-left: -20px;
padding: 20px;
width: calc(100% + 40px);
flex-wrap: wrap;
gap: 10px;
background: var(--demo-bg);
}
.forms-item-in-btns .forms-item-in {
gap: 10px;
flex-wrap: wrap;
padding: 0;
width: unset;
flex: 1;
margin: 0;
background: unset;
}
.forms-item-in-btns .forms-item-in:last-child {
min-width: 100%;
margin-top: 25px;
}
.forms-item-grid {
width: 100%;
gap: 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.forms-item-title {
color: var(--demo-text-color);
font-size: 17px;
margin-bottom: 20px;
display: block;
}
.forms-item-title span {
opacity: 0.5;
margin: 0 10px;
}
.forms-item-in-btns-title {
color: var(--demo-text-color);
font-size: 15px;
flex: 1 1 0;
min-width: 100%;
filter: invert(100%);
}
.forms-wrap > .select {
display: inline-block ;
}
select,
.select,
textarea,
input:not([type=checkbox]):not([type=radio]):not([type=time]):not([type=color]):not([type=file]) {
width: 100%;
}
nav {
height: 65px;
box-sizing: border-box;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 50px;
padding: 0 20px;
color: var(--demo-text-color);
border-radius: calc(var(--demo-border-radius) - 5px);
background: rgba(71, 85, 105, 0.07);
}
nav .links {
display: flex;
align-items: center;
gap: 50px;
}
nav .links .link-item {
display: flex;
gap: 15px;
align-items: center;
}
nav .links .link-item a {
background: var(--demo-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 28px;
}
nav .support {
display: flex;
gap: 15px;
align-items: center;
}
nav .support a {
background: var(--demo-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 28px;
}
nav .support .version {
font-size: 14px;
}
nav .support a {
font-size: 28px;
transition: transform 0.2s ease;
text-decoration: none;
}
nav .support a:hover {
transform: translateY(-3px);
}
.page {
position: relative;
display: flex;
height: 100dvh;
}
.page .page-right {
overflow: auto;
flex: 1;
}
.main-content {
display: flex;
gap: 20px;
padding-right: 20px;
}
main {
display: flex;
flex-direction: column;
gap: 30px;
}
h1 {
font-size: 55px;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
background: var(--demo-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: flex;
align-items: center;
line-height: 1;
}
h1 img {
height: 50px;
aspect-ratio: 1;
margin-right: 15px;
transform: translateY(3px);
}
h1 strong {
font-weight: 400;
}
h1 span {
font-weight: 300;
margin-right: 5px;
}
.language-html {
font-size: 14px ;
font-weight: 100 ;
}
.code-container {
width: 500px;
}
.code-container .code-toolbar .language-css,
.code-container .code-toolbar .language-html {
border-radius: 10px;
font-size: 12px ;
}
pre[class*=language-] {
margin: 0 ;
}
.pcr-app[data-theme=classic] {
width: 525px ;
}
.pcr-app .pcr-swatches > button {
height: calc(1.25em - 5px) ;
margin: 0px ;
width: 100% ;
border-radius: 0 ;
}
.pcr-app .pcr-swatches {
grid-template-rows: repeat(10, auto);
grid-auto-flow: column ;
grid-template-columns: repeat(auto-fit, 24px) ;
width: 100%;
gap: 1px;
}
.input-color {
border: unset;
position: relative;
height: 16px;
width: 100%;
cursor: pointer;
border-radius: 50em;
transition: unset ;
overflow: hidden;
flex-shrink: 0;
outline: 2px solid rgba(0, 0, 0, 0.03);
}
.input-color:before, .input-color:after {
transition: unset ;
}
.input-color:before {
position: absolute;
content: "";
inset: 0;
opacity: 0.5;
background-size: 0.5em ;
background: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');
}
.input-color:after {
position: absolute;
background: var(--pcr-color);
content: "";
inset: 0;
z-index: 2;
}
.sidebar-option .pickr .pcr-button {
border: unset;
position: relative;
height: 16px;
width: 100%;
padding: 0.5em;
cursor: pointer;
border-radius: 50em;
transition: unset ;
overflow: hidden;
flex-shrink: 0;
outline: 2px solid rgba(0, 0, 0, 0.03);
}
.pcr-button,
.input-color {
transition: unset ;
}
.pcr-button:before, .pcr-button:after,
.input-color:before,
.input-color:after {
transition: unset ;
}
.custom-scroll {
scrollbar-width: thin;
}
.custom-scroll::-webkit-scrollbar {
background: transparent;
width: 2px;
position: relative;
padding: 10vh 0;
}
.custom-scroll::-webkit-scrollbar-thumb {
background: rgba(107, 107, 107, 0.2);
border-radius: 50em;
padding: 10vh 0;
}
.flex {
display: flex;
}
.items-center {
align-items: center;
}
.flex-col {
flex-direction: column;
}
.justify-center {
justify-content: center;
}
.w-50 {
width: 50%;
}
.gap-10 {
gap: 10px;
}
.gap-15 {
gap: 15px;
}
.flex-wrap {
flex-wrap: wrap;
}
.hide-unchanged:has(.btn-show) .sidebar-option {
display: none ;
}
.hide-unchanged:has(.btn-show) .sidebar-option:has(.btn-show) {
display: grid ;
}
.circle-1 {
position: absolute;
top: -25vh;
left: -25vw;
width: 65vw;
}
.circle-2 {
position: absolute;
top: -10vh;
right: clamp(-300px, -25vw, -500px);
width: 56vw;
}
.sidebar-title {
font-size: 24px;
height: 52px;
line-height: 28px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 10px;
font-weight: 300;
color: var(--demo-text-color);
padding-left: 10px;
filter: brightness(50%);
}
.sidebar-option {
position: relative;
display: grid;
grid-template-columns: 1fr 20px;
grid-template-rows: repeat(2, 16px);
grid-column-gap: 10px;
grid-row-gap: 3px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
padding: 5px 0 5px 10px;
}
.sidebar-option:last-child {
border: unset;
margin-bottom: 25px;
}
.sidebar-option ::-webkit-slider-runnable-track {
--cform-bg: rgba(71, 85, 105, 0.16);
--cform-checkbox-width: 16px;
}
.sidebar-option ::-webkit-slider-thumb {
--cform-accent: rgba(71, 85, 105, 1);
filter: saturate(70%) brightness(120%);
}
.sidebar-option.color-option {
padding-bottom: 15px;
}
.sidebar-option span {
font-size: 14px;
grid-area: 1/1/2/2;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
white-space: nowrap;
color: var(--demo-text-color);
font-weight: 400;
}
.sidebar-option .option {
grid-area: 2/1/3/2;
}
.sidebar-option .option input[type=range] {
margin: 0;
}
.sidebar-option .reset-area {
grid-area: 1/2/3/3;
display: flex;
justify-content: flex-end;
align-items: flex-start;
}
.sidebar-option .reset-btn {
opacity: 0.2;
pointer-events: none;
height: 20px;
width: 20px;
border: unset;
padding-block: 0 ;
padding-inline: 0 ;
min-width: unset ;
font-size: 16px;
line-height: 1;
cursor: pointer;
aspect-ratio: 1;
}
.sidebar-option .reset-btn:hover {
background: inherit;
}
.sidebar-option .reset-btn.cform-btn-info {
--cform-btn-info: transparent ;
--cform-info-color: var(--demo-text-color) ;
}
.sidebar-option .reset-btn.btn-show {
pointer-events: unset;
opacity: 1;
}
.sidebar-option:before {
position: absolute;
top: 5px;
left: 0;
width: 2px;
content: "";
height: calc(100% - 10px);
background: transparent;
z-index: 3;
border-radius: 2px;
}
.sidebar-option:has(.btn-show):before {
background: var(--demo-gradient);
}
.demo .sidebar .cform-switch input[type=checkbox] + label {
transition: background 0.3s linear, opacity 0.3s linear;
background: var(--demo-gradient);
opacity: 0.5;
}
.demo .sidebar .cform-switch input[disabled] + label {
background: #616c80;
}
.demo .sidebar .cform-switch input[type=checkbox]:checked + label {
background: var(--demo-gradient);
opacity: 1;
}
.sidebar-buttons .cform-btn-info {
--cform-btn-info: #fff;
--cform-accent-color: #3f3a51;
}
.sidebar-in,
.sidebar-options {
padding-bottom: 0 ;
}
.options-footer {
padding: 15px 10px;
}
.options-footer .cform-btn {
width: 100%;
opacity: 0.5;
pointer-events: none;
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
--cform-radius: 50px ;
--cform-font-size: 15px ;
--cform-btn-primary: var(--demo-text-color) ;
--cform-primary-color: #fff ;
}
.options-footer .cform-btn.active {
opacity: 1;
pointer-events: unset;
}
pre[class*=language-] {
background: rgba(255, 255, 255, 0.5) ;
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
}
code[class*=language-],
pre[class*=language-] {
text-shadow: unset ;
}
.tooltip {
width: 16px;
height: 16px;
border-radius: 12px;
background: white;
color: var(--demo-text-color);
font-size: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
font-style: normal;
margin-left: 5px;
cursor: pointer;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.tab-content {
display: none;
}
.tab-content.active {
display: flex;
}
.tabs {
border-top: 1px solid rgba(71, 85, 105, 0.07);
margin: 15px;
}
.tabs .tab-buttons {
display: flex;
align-items: flex-start;
}
.tabs .tab-buttons .tab-button {
flex: 1;
margin-top: 20px;
background: unset;
color: var(--demo-text-color);
padding: 10px 10px;
border: unset;
border-radius: calc(var(--demo-border-radius) / 2);
cursor: pointer;
transition: background 0.1s ease;
}
.tabs .tab-buttons .tab-button:hover {
background: rgba(255, 255, 255, 0.7);
}
.tabs .tab-buttons .tab-button.active-button {
font-weight: bold;
background: rgba(104, 73, 145, 0.07);
border-radius: calc(var(--demo-border-radius) / 2) calc(var(--demo-border-radius) / 2) 0 0;
}
.tabs .tab-content-wrap {
background: rgba(104, 73, 145, 0.07);
border-radius: 0 0 calc(var(--demo-border-radius) / 2) calc(var(--demo-border-radius) / 2);
}
.tabs .tab-content {
background: unset;
background: transparent ;
}
.tabs .tab-content .form-code {
width: 100%;
background: transparent ;
}
.tabs .tab-content .code-container {
width: 100%;
background: unset;
background: transparent ;
}
.tabs .tab-content .code-container pre[class*=language-] {
background: transparent ;
border-radius: 0;
-webkit-backdrop-filter: blur(0);
backdrop-filter: blur(0);
}
.tabs .tab-content .code-container pre[class*=language-] code {
white-space: pre-wrap;
word-break: break-all;
}
.customize-container {
padding: 10px;
display: flex;
width: 100%;
margin-top: 20px;
gap: 20px;
}
.customize-container.flex-5-4 .customize-container-in:first-child {
flex: 5 ;
max-width: unset ;
}
.customize-container.flex-5-4 .customize-container-in:last-child {
flex: 4 ;
max-width: unset ;
}
.customize-container .customize-container-in {
flex: 1;
max-width: calc(50% - 20px);
}
.customize-container .customize-container-in .sidebar-option {
grid-template-columns: 1fr 165px 20px;
grid-template-rows: 1fr;
align-items: center;
}
.customize-container .customize-container-in .sidebar-option.color-option {
padding-bottom: 5px;
}
.customize-container .customize-container-in .sidebar-option span {
grid-area: 1/1/2/2;
overflow: hidden;
white-space: normal;
font-size: 13px;
}
.customize-container .customize-container-in .sidebar-option .option {
grid-area: 1/2/2/3;
display: flex;
align-items: center;
}
.customize-container .customize-container-in .sidebar-option .option .pickr,
.customize-container .customize-container-in .sidebar-option .option .pcr-button,
.customize-container .customize-container-in .sidebar-option .option .input-color {
width: 100%;
height: 16px;
display: flex;
align-items: flex-start;
}
.customize-container .customize-container-in .sidebar-option .reset-area {
grid-area: 1/3/2/4;
}
.hbtn,
.hbtn-2 {
width: 300px;
height: 60px;
font-size: 18px;
text-align: center;
line-height: 60px;
color: rgba(255, 255, 255, 0.9);
border-radius: 15px;
background: linear-gradient(120deg, #fe0986 0%, #a219d8 100%);
background-size: 150%;
margin-top: 50px;
cursor: pointer;
transition: transform 0.2s ease-in-out;
animation: hbtn 16s linear infinite;
text-decoration: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.hbtn {
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.27);
/*border-top: 1px solid rgba(255,255,255, 0.67)*/
}
.hbtn:hover {
transform: translateY(-2px);
}
.hbtn:hover .btn-2 {
transform: translateX(-50%) translateY(2px);
}
.hbtn-2 {
position: absolute;
margin-top: -45px;
z-index: -1;
left: 50%;
width: 250px;
height: 55px;
border-radius: 50em;
filter: blur(25px);
opacity: 0.7;
transform: translateX(-50%);
}
@keyframes hbtn {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.home-page {
flex-direction: column;
overflow: auto;
min-height: 100dvh;
gap: 40px;
padding: 50px 0;
scroll-behavior: smooth;
}
.home-page main {
min-height: 100dvh;
flex-shrink: 0;
height: auto;
}
.install-wrap {
position: relative;
padding: 40px 40px 100px;
overflow: hidden;
display: flex;
width: 50vw;
align-items: center;
flex-direction: column;
justify-content: center;
background: rgba(255, 255, 255, 0.5);
color: var(--demo-text-color);
margin: 0 auto;
border-radius: var(--demo-border-radius);
box-shadow: var(--demo-box-shadow);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
}
.install-wrap .install-title {
font-size: 20px;
font-weight: bold;
}
.install-wrap .install-description {
margin-top: 50px;
}
.install-wrap .install-description span {
max-width: 80%;
text-align: center;
margin: 0 auto;
text-wrap: balance;
display: block;
}
.install-wrap .install-description code {
font-size: 12px;
display: block;
line-height: 16px;
margin-top: 5px;
margin-bottom: 7px;
background: rgba(71, 85, 105, 0.07);
border-radius: 5px;
padding: 3px 5px;
word-wrap: break-word;
}
.install-wrap ol {
margin: 35px auto 0;
width: 70%;
min-width: 500px;
}
.install-wrap ol ul {
margin-left: 20px;
margin-bottom: 30px;
}
.install-wrap ol ul li {
font-size: 15px;
}
.install-wrap ol ul li strong {
font-weight: 400;
}
.install-wrap ol li {
margin-top: 15px;
line-height: 20px;
font-size: 16px;
}
.install-wrap ol li strong {
display: block;
background: var(--demo-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.install-link {
margin: 50px 0 40px;
}
.install-link i {
margin: 0 10px;
}
.install-link a {
font-size: 16px;
text-decoration: none;
color: var(--demo-text-color);
}
.sidebars-toggles {
margin-top: 30px;
display: flex;
gap: 10px;
justify-content: center;
}
.sidebars-toggles button {
cursor: pointer;
background: var(--demo-gradient);
color: #fff;
border: unset;
padding: 10px 10px;
border-radius: 10px;
display: none;
gap: 8px;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
align-items: center;
}
.sidebars-toggles button i {
font-size: 14px;
opacity: 0.7;
}
.sidebar .left_sidebar_toggle,
.code-sidebar .code_sidebar_toggle {
width: 28px;
height: 28px;
background: unset;
border: unset;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
font-size: 28px;
background: var(--demo-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
z-index: 11;
display: none;
}
.sidebar .left_sidebar_toggle {
position: absolute;
right: 5px;
top: 5px;
}
.code-sidebar .code_sidebar_toggle {
position: absolute;
left: 5px;
top: 5px;
}
.sidebar.active .left_sidebar_toggle,
.sidebar.active .code_sidebar_toggle,
.code-sidebar.active .left_sidebar_toggle,
.code-sidebar.active .code_sidebar_toggle {
display: flex;
}
.code-sidebar.active .code-sidebar-title {
padding-left: 35px;
position: sticky;
top: 0;
}
@media screen and (max-width: 1600px) {
.sidebar,
.code-sidebar {
flex-basis: 300px;
}
}
@media screen and (max-width: 1200px) {
.home-page {
padding: 30px 0;
}
.home-page header {
max-width: 90%;
}
.home-page .install-wrap {
width: 80%;
}
.home-page .install-wrap ol {
width: 90%;
}
}
@media screen and (max-width: 800px) {
header .header-content {
width: 100%;
}
header .header-content .keys,
header .header-content ul {
width: 90%;
}
header nav {
margin-top: 0;
padding: 0 15px;
height: 45px;
}
header nav .support,
header nav .links {
gap: 15px;
}
header nav .support .link-item,
header nav .links .link-item {
gap: 10px;
}
header nav .support .link-item span,
header nav .links .link-item span {
font-size: 14px;
}
header nav .support .link-item a,
header nav .links .link-item a {
font-size: 20px;
}
h1 {
font-size: 44px;
}
h1 img {
height: 40px;
}
h2 {
text-align: center;
font-size: 20px;
}
.home-page .install-wrap {
width: 90%;
padding: 20px 20px 100px;
}
.home-page .install-wrap .install-description {
margin-top: 20px;
}
.home-page .install-wrap .install-description span {
max-width: 100%;
}
.home-page .install-wrap .install-description code {
word-break: break-all;
}
.home-page .install-wrap ol {
width: 100%;
list-style-position: inside;
min-width: unset;
}
.home-page .install-wrap ol strong {
display: inline-block;
}
}
@media screen and (max-width: 1200px) {
.sidebars-toggles .code_sidebar_toggle {
display: flex;
}
.code-sidebar {
flex-basis: 260px;
position: fixed;
height: 100dvh;
padding: 10px;
background: rgba(255, 255, 255, 0.5);
max-width: 500px;
-webkit-backdrop-filter: blur(50px);
backdrop-filter: blur(50px);
right: -100%;
top: 0;
transition: 0.6s ease-in-out;
z-index: 10;
box-shadow: var(--demo-boxs-shadow-2);
}
.code-sidebar.active {
right: 0;
}
.sidebar {
padding: 0 20px 0 0;
}
.sidebar .sidebar-content {
border-radius: 0;
}
.customize-description {
font-size: 16px;
}
.customize-description h2 {
font-size: 20px;
font-weight: bold;
}
.theme-buttons .cform-btn {
--cform-padding: 3px;
}
}
@media screen and (max-width: 1200px) {
.customize-container .customize-container-in .sidebar-option {
grid-template-columns: 1fr 20px;
grid-template-rows: repeat(2, 16px);
grid-column-gap: 10px;
grid-row-gap: 3px;
}
.customize-container .customize-container-in .sidebar-option span {
grid-area: 1/1/2/2;
}
.customize-container .customize-container-in .sidebar-option .option {
grid-area: 2/1/3/2;
}
.customize-container .customize-container-in .sidebar-option .reset-area {
grid-area: 1/2/3/3;
}
.form-code .code-container code {
word-break: break-all;
white-space: pre-wrap;
}
}
@media screen and (max-width: 850px) {
.main-content {
padding-left: 20px;
}
.sidebars-toggles .left_sidebar_toggle {
display: flex;
}
.sidebar {
position: fixed;
height: 100dvh;
padding: 0px;
width: 300px;
left: -100%;
top: 0;
transition: 0.6s ease-in-out;
z-index: 10;
overflow: auto;
box-shadow: var(--demo-boxs-shadow);
}
.sidebar.active {
left: 0;
}
}
@media screen and (max-width: 600px) {
.main-content {
padding-left: 0;
padding-right: 0;
}
.forms-wrap {
margin: 0 10px;
}
.forms-item {
padding: 10px;
}
.forms-item-in {
margin-left: -10px;
padding: 10px;
width: calc(100% + 20px);
}
.sidebar,
.code-sidebar {
width: 90%;
max-width: 90%;
}
}
@media screen and (max-width: 500px) {
.customize-container {
flex-direction: column;
}
}