Merge pull request #19 from apuc/add-default-style

Added styles for cross-browser compatibility
This commit is contained in:
MaxOvs19 2022-11-01 19:13:58 +03:00 committed by GitHub
commit d1f87a6a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 140 additions and 7 deletions

View File

@ -14,11 +14,22 @@ body {
.container { .container {
margin: 0 auto; margin: 0 auto;
display: flex;
align-items: baseline;
justify-content: space-between;
flex-wrap: wrap;
width: 900px; width: 900px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: baseline;
-ms-flex-align: baseline;
align-items: baseline;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
} }
// ----Layout---- // ----Layout----
@ -29,33 +40,65 @@ body {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: none; border: none;
border-radius: 10px; border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
-o-border-radius: 10px;
} }
.cg-select { .cg-select {
padding: 5px; -webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1; flex-grow: 1;
min-height: 50px; min-height: 50px;
color: #fff; color: #fff;
padding: 5px;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between; justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center; align-items: center;
text-overflow: ellipsis; text-overflow: ellipsis;
background: #2a2f3b; background: #2a2f3b;
border: none; border: none;
cursor: pointer; cursor: pointer;
border-radius: 5px; border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
transition: 0.5s; transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
.selected { .selected {
max-width: 195px; max-width: 195px;
margin: 5px; margin: 5px;
} }
&:hover { &:hover {
transition: 0.5s; transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
background: #394050; background: #394050;
} }
} }
@ -67,11 +110,25 @@ body {
border-left: 5px solid transparent; border-left: 5px solid transparent;
border-right: 5px solid transparent; border-right: 5px solid transparent;
border-top: 6px solid #fff; border-top: 6px solid #fff;
transition: 0.5s; transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
&_rotate { &_rotate {
transform: rotate(180deg); transform: rotate(180deg);
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transition: 0.5s; transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
} }
} }
@ -88,24 +145,55 @@ body {
color: white; color: white;
background: #2a2f3b; background: #2a2f3b;
border: 1px #0a0b0e solid; border: 1px #0a0b0e solid;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
border-radius: 5px; border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
transition: 0.5s; transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
opacity: 0; opacity: 0;
display: none; display: none;
z-index: 1; z-index: 1;
&__item { &__item {
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row; flex-direction: row;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center; align-items: center;
transition: 0.5s; transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
padding: 15px; padding: 15px;
&:hover { &:hover {
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s; transition: 0.5s;
cursor: pointer; cursor: pointer;
background: #8282822c; background: #8282822c;
} }
@ -126,9 +214,20 @@ body {
} }
.multiselect-tag { .multiselect-tag {
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap; flex-wrap: wrap;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row; flex-direction: row;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center; align-items: center;
list-style-type: none; list-style-type: none;
@ -141,12 +240,22 @@ body {
height: 20px; height: 20px;
margin: 0 5px 5px 0; margin: 0 5px 5px 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center; align-items: center;
position: relative; position: relative;
border-radius: 5px; border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
} }
&__button { &__button {
width: 15px; width: 15px;
height: 16px; height: 16px;
@ -160,7 +269,12 @@ body {
font-size: 17px; font-size: 17px;
border-bottom: 1px solid; border-bottom: 1px solid;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center; align-items: center;
} }
@ -179,6 +293,11 @@ input[type='checkbox'] {
.open { .open {
transition: 0.5s; transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
display: block; display: block;
opacity: 1; opacity: 1;

View File

@ -5,7 +5,12 @@
color: white; color: white;
background: #2a2f3b; background: #2a2f3b;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5); box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
border-radius: 5px; border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
margin: 0; margin: 0;
&__nativOption { &__nativOption {

View File

@ -5,10 +5,18 @@
background-color: #bebebc; background-color: #bebebc;
border-radius: 5px; border-radius: 5px;
cursor: pointer; cursor: pointer;
-webkit-transition: 1s;
transition: 1s; transition: 1s;
-moz-transition: 1s;
-ms-transition: 1s;
-o-transition: 1s;
&:hover { &:hover {
-webkit-transition: 1s;
transition: 1s; transition: 1s;
-moz-transition: 1s;
-ms-transition: 1s;
-o-transition: 1s;
background-color: #ffffff; background-color: #ffffff;
} }
} }
@ -17,5 +25,6 @@
color: black; color: black;
stroke: currentcolor; stroke: currentcolor;
transition: 0.2s; transition: 0.2s;
-webkit-transition: 0.2s;
stroke-width: 0.5; stroke-width: 0.5;
} }