refactor: dev optimizations + improvements
This commit is contained in:
@@ -4,20 +4,15 @@
|
||||
@import "base/base";
|
||||
@import 'base/icons';
|
||||
|
||||
@import "../libs/animate/animate";
|
||||
// @import "../libs/animate/animate";
|
||||
|
||||
@import 'components/button';
|
||||
@import 'components/markdown-content';
|
||||
@import 'components/navigator';
|
||||
@import 'components/toggle';
|
||||
@import 'components/typography';
|
||||
|
||||
// @import '../libs/twemoji/twemoji-awesome';
|
||||
@import '../libs/prism/prism.css';
|
||||
// @import 'node_modules/diff2html/dist/diff2html.min';
|
||||
|
||||
@import 'node_modules/graphiql/graphiql';
|
||||
|
||||
@import 'pages/welcome';
|
||||
|
||||
@import 'layout/_rtl';
|
||||
|
@@ -42,15 +42,6 @@ html {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.is-hidden-until-scroll {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
transition: all .6s ease;
|
||||
}
|
||||
.is-sticky .is-hidden-until-scroll {
|
||||
max-height: 30px;
|
||||
}
|
||||
|
||||
.is-hidden-mobile {
|
||||
@include mobile {
|
||||
display: none !important;
|
||||
|
@@ -325,27 +325,3 @@ $material-colors: (
|
||||
@function mc($color-name, $color-variant: '500') {
|
||||
@return material-color($color-name, $color-variant);
|
||||
}
|
||||
|
||||
@mixin md-elevation-0 {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
@mixin md-elevation-1 {
|
||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
@mixin md-elevation-2 {
|
||||
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
@mixin md-elevation-3 {
|
||||
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
@mixin md-elevation-4 {
|
||||
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
@mixin md-elevation-5 {
|
||||
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.3);
|
||||
}
|
@@ -1,136 +0,0 @@
|
||||
.button {
|
||||
background-color: mc('orange','600');
|
||||
color: #FFF;
|
||||
border: 1px solid mc('orange','700');
|
||||
border-radius: 3px;
|
||||
display: inline-flex;
|
||||
height: 40px;
|
||||
align-items: center;
|
||||
padding: 0 15px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
font-family: $core-font-standard;
|
||||
margin: 0;
|
||||
transition: all .4s ease;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
|
||||
span {
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
line-height: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
i {
|
||||
margin-right: 8px;
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: #FFF;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: mc('orange','800');
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@each $color, $colorvalue in $material-colors {
|
||||
&.is-#{$color} {
|
||||
background-color: mc($color, '600');
|
||||
border-color: mc($color,'700');
|
||||
color: #FFF;
|
||||
|
||||
&.is-outlined {
|
||||
background-color: #FFF;
|
||||
color: mc($color,'700');
|
||||
}
|
||||
|
||||
&.is-inverted {
|
||||
background-color: rgba(mc($color, '800'), 0);
|
||||
border-color: mc($color, '500');
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: mc($color,'800');
|
||||
color: #FFF;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
box-shadow: inset 0 0 0 3px rgba(255,255,255, .4);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&.is-icon-only {
|
||||
i {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-featured {
|
||||
animation: btnInvertedPulse .6s ease alternate infinite;
|
||||
}
|
||||
|
||||
&.is-fullwidth {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&.is-disabled, &:disabled {
|
||||
background-color: mc('grey', '300');
|
||||
border: 1px solid mc('grey','400');
|
||||
color: mc('grey', '500');
|
||||
cursor: default;
|
||||
transition: none;
|
||||
|
||||
&:hover {
|
||||
background-color: mc('grey', '300') !important;
|
||||
color: mc('grey', '500') !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-small {
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.button-group {
|
||||
|
||||
.button {
|
||||
border-radius: 0;
|
||||
margin-left: 1px;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@include keyframes(btnInvertedPulse) {
|
||||
0% {
|
||||
background-color: rgba(mc('grey', '500'), 0);
|
||||
}
|
||||
100% {
|
||||
background-color: rgba(mc('grey', '500'), 0.25);
|
||||
}
|
||||
}
|
@@ -1,118 +0,0 @@
|
||||
|
||||
.panel-aside {
|
||||
background-color: mc('blue-grey', '800');
|
||||
border: 1px solid mc('blue-grey', '800');
|
||||
border-bottom-left-radius: 8px;
|
||||
padding: 20px;
|
||||
color: mc('blue-grey','100');
|
||||
|
||||
label {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.panel {
|
||||
background-color: #FFF;
|
||||
box-shadow: 0 0 12px 0 rgba(mc('grey','800'), .10), 1px 6px 8px 0 rgba(mc('grey','800'), .10);
|
||||
padding: 0 0 1px 0;
|
||||
border-radius: 4px;
|
||||
|
||||
.panel-title {
|
||||
border-bottom: 1px solid darken($color-bg, 5%);
|
||||
padding: 0 15px;
|
||||
color: $color-text;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 40px;
|
||||
|
||||
&.is-featured {
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
background-color: mc('blue', '700');
|
||||
background-image: linear-gradient(to bottom, mc('blue', '700') 0%, mc('blue', '800') 100%);
|
||||
border-bottom-color: mc('blue', '900');
|
||||
box-shadow: inset 0 0 0 1px mc('blue', '600'), inset 0 0 0px 2px rgba(mc('blue', '800'), .5);
|
||||
color: #FFF;
|
||||
|
||||
> i::before {
|
||||
@include spinner(#FFF, 0.4s, 18px);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
& + .panel-content {
|
||||
box-shadow: inset 0 0 0 1px #FFF, inset 0 30px 80px -25px mc('blue', '100');
|
||||
}
|
||||
|
||||
> span {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
> i {
|
||||
display: flex;
|
||||
width: 18px;
|
||||
align-items: center;
|
||||
|
||||
&::before {
|
||||
content: " ";
|
||||
@include spinner(mc($primary,'500'), 0.4s, 18px);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.panel-content {
|
||||
padding: 0 15px;
|
||||
|
||||
&.is-text {
|
||||
padding: 25px;
|
||||
|
||||
p + p, p + h3 {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-bottom: 15px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
ul li {
|
||||
color: mc('grey', '700');
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: 500;
|
||||
color: mc($primary,'800');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.panel-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
height: 50px;
|
||||
background-color: $color-bg;
|
||||
padding: 0 15px;
|
||||
margin: 0 1px;
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
position: relative;
|
||||
|
||||
.button + .button {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+ .panel {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
}
|
@@ -1,67 +0,0 @@
|
||||
.toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 24px;
|
||||
cursor: pointer;
|
||||
margin: 5px 5px 5px 0;
|
||||
|
||||
& + & {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
&-container {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 24px;
|
||||
width: 50px;
|
||||
background-color: mc('blue-grey', '200');
|
||||
border-radius: 12px;
|
||||
padding: 2px;
|
||||
transition: background-color .5s ease;
|
||||
}
|
||||
|
||||
&-pin {
|
||||
display: flex;
|
||||
background-color: #FFF;
|
||||
border-radius:10px;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
transition: all .5s ease;
|
||||
}
|
||||
|
||||
&-text {
|
||||
padding-left: 10px;
|
||||
color: mc('grey', '700');
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.toggle-container {
|
||||
background-color: mc('grey', '400');
|
||||
}
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
.toggle-container {
|
||||
background-color: mc('indigo', '500');
|
||||
}
|
||||
.toggle-pin {
|
||||
margin-left: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* THEME OVERRIDE - START */
|
||||
|
||||
@each $color, $colorvalue in $material-colors {
|
||||
.is-primary-#{$color} .toggle {
|
||||
&.is-active {
|
||||
.toggle-container {
|
||||
background-color: mc($color, '500');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* THEME OVERRIDE - END */
|
@@ -1,16 +0,0 @@
|
||||
|
||||
h1 {
|
||||
font-size: 28px;
|
||||
}
|
||||
h2 {
|
||||
font-size: 18px;
|
||||
}
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@each $color, $colorvalue in $material-colors {
|
||||
i.is-#{$color} {
|
||||
color: mc($color, '600');
|
||||
}
|
||||
}
|
@@ -1,18 +0,0 @@
|
||||
@charset "utf-8";
|
||||
|
||||
$primary: 'indigo';
|
||||
|
||||
@import "base/variables";
|
||||
@import "base/colors";
|
||||
@import "base/reset";
|
||||
@import "base/mixins";
|
||||
@import "base/fonts";
|
||||
@import "base/base";
|
||||
|
||||
@import "libs/animate";
|
||||
|
||||
@import 'components/button';
|
||||
@import 'components/grid';
|
||||
@import 'components/typography';
|
||||
|
||||
@import 'pages/error';
|
Reference in New Issue
Block a user