mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-17 05:29:41 +03:00
309 lines
6.7 KiB
CSS
309 lines
6.7 KiB
CSS
.App {
|
|
min-width: 600px;
|
|
}
|
|
.header {
|
|
background: #36befd;
|
|
background: -moz-linear-gradient(-45deg, #36befd 1%, #6461f6 100%);
|
|
background: -webkit-linear-gradient(-45deg, #36befd 1%, #6461f6 100%);
|
|
background: linear-gradient(135deg, #36befd 1%, #6461f6 100%);
|
|
margin: 0;
|
|
color: #fff;
|
|
letter-spacing: 0.1pt;
|
|
text-shadow: 0px 1px 3px rgba(0, 0, 255, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: nowrap;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 76px;
|
|
box-shadow: 0 15px 20px -15px rgba(57, 120, 253, 0.15), 0 55px 50px -35px rgba(47, 78, 249, 0.12);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.header code {
|
|
border-radius: 4px;
|
|
margin: 2px;
|
|
display: block;
|
|
padding: 0.5em;
|
|
background: #fff;
|
|
font-size: 10pt;
|
|
margin: 0px auto;
|
|
box-shadow: 0px 1px 3px rgba(0, 0, 255, 0.15);
|
|
}
|
|
.header code .code-keyword {
|
|
color: #0059FF;
|
|
font-weight: bold;
|
|
}
|
|
.header code .code-char {
|
|
color: #4D4D4C;
|
|
}
|
|
.header code .code-variable {
|
|
color: #3778AD;
|
|
}
|
|
.header code .code-string {
|
|
color: #279737;
|
|
font-weight: 400;
|
|
}
|
|
.content {
|
|
min-height: calc(100vh - 76px);
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-flow: column;
|
|
flex-wrap: wrap;
|
|
}
|
|
.content-section {
|
|
position: relative;
|
|
padding: 40px 0px;
|
|
background: #fff;
|
|
z-index: 1;
|
|
overflow: hidden;
|
|
}
|
|
.content-section:last-child {
|
|
flex-grow: 1;
|
|
}
|
|
.content-section:before,
|
|
.content-section:after {
|
|
content: '';
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
}
|
|
.content-section:nth-child(2n - 1) {
|
|
background: #f6f8fb;
|
|
}
|
|
.content-section:nth-child(2n - 1):before,
|
|
.content-section:nth-child(2n - 1):after {
|
|
background: #fff;
|
|
}
|
|
.content-section:nth-child(2n + 0) {
|
|
background: #fff;
|
|
}
|
|
.content-section:nth-child(2n + 0):before,
|
|
.content-section:nth-child(2n + 0):after {
|
|
background: #f6f8fb;
|
|
}
|
|
.content-section.skew:before,
|
|
.content-section.skew:after {
|
|
transform: skewY(-7deg);
|
|
}
|
|
.content-section.skew + .content-section:before,
|
|
.content-section.skew + .content-section:after {
|
|
transform: skewY(-7deg);
|
|
}
|
|
.content-section skew + .content-section.skew:before,
|
|
.content-section.skew + .content-section.skew:before {
|
|
top: 0;
|
|
}
|
|
.content-section + .content-section.skew:before {
|
|
top: -50vw;
|
|
}
|
|
.content-section.skew + .content-section:after {
|
|
bottom: -50vw;
|
|
}
|
|
.content-section + .content-section:after {
|
|
top: 0;
|
|
}
|
|
.content-section.skew + .content-section.skew:after {
|
|
bottom: 0;
|
|
}
|
|
.content-section.skew:first-child:before {
|
|
top: -50vw !important;
|
|
}
|
|
.content-section.skew:last-child:after {
|
|
bottom: -50vw !important;
|
|
}
|
|
.content-section-content-framework > span {
|
|
font-weight: bold;
|
|
font-size: 30pt;
|
|
user-select: none;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
.content-section-content-framework > span:not(:nth-child(2)) {
|
|
display: inline-block;
|
|
color: transparent;
|
|
height: 190px;
|
|
width: 190px;
|
|
vertical-align:middle;
|
|
}
|
|
.content-section-title {
|
|
margin-bottom: 14px;
|
|
}
|
|
.content-section-title > h2{
|
|
text-align: center;
|
|
font-size: 26pt;
|
|
color: #39547A;
|
|
margin: 24px 0px;
|
|
}
|
|
.content-section-title > table{
|
|
text-align: left;
|
|
margin: 0px auto;
|
|
}
|
|
.content-section-title > table tr {
|
|
margin: 10px;
|
|
}
|
|
.content-section-title > table td {
|
|
line-height: 18pt;
|
|
}
|
|
.content-section-title > table td:first-child {
|
|
text-align: right;
|
|
font-weight: bold;
|
|
vertical-align: top;
|
|
}
|
|
.content-section-title > table td:first-child span{
|
|
margin: 0px 6px;
|
|
}
|
|
.content-section-title > table td:last-child span {
|
|
text-align: left;
|
|
color: #36befd;
|
|
font-weight: bold;
|
|
}
|
|
.content-section-content {
|
|
display: table;
|
|
margin: 0px auto;
|
|
}
|
|
.content-section-content .os-host,
|
|
.content-section-content .os-host-textarea {
|
|
border: 2px solid #36befd;
|
|
width: 480px;
|
|
max-height: 300px;
|
|
margin: 10px auto 20px auto;
|
|
border-radius: 6px;
|
|
padding: 10px;
|
|
line-height: 16pt;
|
|
}
|
|
.content-section-content > .os-host .os-host,
|
|
.content-section-content > .os-host-textarea .os-host-textarea {
|
|
border: 2px solid #6461f6;
|
|
width: auto;
|
|
height: auto;
|
|
margin: 10px auto;
|
|
}
|
|
.content-section-content .bonus-content {
|
|
display: inline-block;
|
|
white-space: pre;
|
|
background: #f0f3f6;
|
|
padding: 0px 5px;
|
|
margin: 2px;
|
|
border-radius: 4px !important;
|
|
border: 1px solid #DDE3ED;
|
|
font-size: 10pt;
|
|
font-family: "Lucida Console", Monaco, monospace;
|
|
color: #39547A;
|
|
}
|
|
.content-section-content-buttons {
|
|
display: table;
|
|
margin: 0px auto;
|
|
}
|
|
.info-span {
|
|
background: #F7F7F7;
|
|
padding: 2px 5px;
|
|
margin: 2px;
|
|
white-space: nowrap;
|
|
border-radius: 4px;
|
|
border: 1px solid #DEDFE0;
|
|
font-weight: bold;
|
|
font-size: 10pt;
|
|
}
|
|
a {
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
position: relative;
|
|
color: #36befd;
|
|
transition: color 0.3s, text-shadow 0.3s;
|
|
text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
|
|
padding: 0px 1px;
|
|
font-weight: 600;
|
|
outline: none !important;
|
|
cursor: pointer;
|
|
z-index: 0;
|
|
}
|
|
a:hover {
|
|
color: #fff;
|
|
text-shadow: 0px 1px 6px rgba(0, 0, 0, 0.16);
|
|
}
|
|
a:before {
|
|
content: '';
|
|
position: absolute;
|
|
display: block;
|
|
bottom: 0;
|
|
left: 0;
|
|
height: 0%;
|
|
width: 100%;
|
|
background: transparent;
|
|
z-index: -1;
|
|
border-bottom: 1px dotted #36befd;
|
|
transition: height 0.3s, border 0.3s, background-color 0.15s;
|
|
}
|
|
a:hover:before {
|
|
height: 100%;
|
|
background: #36befd;
|
|
border-bottom: 1px solid #36befd;
|
|
}
|
|
.buttons {
|
|
display: table;
|
|
margin: 0px auto;
|
|
}
|
|
button {
|
|
font-size: 10pt;
|
|
line-height: 28pt;
|
|
font-family: sans-serif;
|
|
font-weight: bold;
|
|
color: #555E6B;
|
|
line-height: 40px;
|
|
border: 1px solid #D6D6D6;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: color 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
|
|
padding: 0px 14px;
|
|
display: block;
|
|
float: left;
|
|
margin: 5px;
|
|
text-align: center;
|
|
background: rgba(0, 0, 0, 0.02);
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
min-width: 80px;
|
|
outline: none !important;
|
|
}
|
|
button:hover {
|
|
color: #fff;
|
|
background: #6461f6;
|
|
border-color: #6461f6;
|
|
box-shadow: 0 4px 8px -1px rgba(170, 170, 170, 0.45);
|
|
}
|
|
button:active {
|
|
box-shadow: inset 0 4px 9px -1px rgba(0, 0, 0, 0.15);
|
|
}
|
|
::selection {
|
|
color: #fff;
|
|
background: #6461f6;
|
|
text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.28);
|
|
}
|
|
img {
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
}
|
|
.os-logo {
|
|
background: transparent url("assets/overlayscrollbars.svg") no-repeat center center;
|
|
background-size: 80%;
|
|
}
|
|
.framework-logo {
|
|
background: transparent url("assets/react.svg") no-repeat center center;
|
|
background-size: 80%;
|
|
}
|
|
.custom-class-name-test {
|
|
background: rgba(0, 0, 0, 0.03);
|
|
} |