Fix styles due to bootstrap upgrade

This commit is contained in:
cyril lopez 2017-10-16 14:30:26 +02:00
parent 8c26406654
commit 203f7de94f
14 changed files with 81 additions and 24 deletions

View File

@ -12,8 +12,8 @@
vertical-align: middle; vertical-align: middle;
user-select: none; user-select: none;
border: $input-btn-border-width solid transparent; border: $input-btn-border-width solid transparent;
@include button-size($input-btn-padding-y, $input-btn-padding-x, $font-size-base, $input-btn-line-height, $btn-border-radius); // @include button-size($input-btn-padding-y, $input-btn-padding-x, $font-size-base, $input-btn-line-height, $btn-border-radius);
@include transition($btn-transition); // @include transition($btn-transition);
// Share hover and focus styles // Share hover and focus styles
@include hover-focus { @include hover-focus {

View File

@ -21,7 +21,7 @@
@if $enable-shadows { @if $enable-shadows {
box-shadow: $btn-box-shadow, 0 0 0 3px rgba($border, .5); box-shadow: $btn-box-shadow, 0 0 0 3px rgba($border, .5);
} @else { } @else {
box-shadow: 0 0 0 3px rgba($border, .5); box-shadow: 0 0 0 0px rgba($border, .5);
} }
} }

View File

@ -14,7 +14,7 @@ const webpack = require('webpack');
module.exports = { module.exports = {
context: process.cwd(), context: process.cwd(),
entry: { entry: {
vendor: ['react', 'react-dom', 'react-intl', 'react-transition-group', 'immutable', 'lodash'] // Shared dependencies accross the admin and plugins. vendor: ['react', 'react-dom', 'react-intl', 'reactstrap', 'react-transition-group', 'immutable', 'lodash'] // Shared dependencies accross the admin and plugins.
}, },
devtool: 'cheap-module-source-map', devtool: 'cheap-module-source-map',
output: { output: {
@ -45,7 +45,8 @@ module.exports = {
'react-intl': path.resolve(__dirname, '..', '..', '..', 'node_modules', 'react-intl'), 'react-intl': path.resolve(__dirname, '..', '..', '..', 'node_modules', 'react-intl'),
'react': path.resolve(__dirname, '..', '..', '..', 'node_modules', 'react'), 'react': path.resolve(__dirname, '..', '..', '..', 'node_modules', 'react'),
'react-dom': path.resolve(__dirname, '..', '..', '..', 'node_modules', 'react-dom'), 'react-dom': path.resolve(__dirname, '..', '..', '..', 'node_modules', 'react-dom'),
'react-transition-group': path.resolve(__dirname, '..', '..', '..', 'node_modules', 'react-transition-group') 'react-transition-group': path.resolve(__dirname, '..', '..', '..', 'node_modules', 'react-transition-group'),
'reactstrap': path.resolve(__dirname, '..', '..', '..', 'node_modules', 'reactstrap')
}, },
symlinks: false, symlinks: false,
extensions: [ extensions: [

View File

@ -53,6 +53,7 @@
position: relative; position: relative;
border-radius: 0.3rem; border-radius: 0.3rem;
text-transform: capitalize; text-transform: capitalize;
background-color: transparent;
cursor: pointer; cursor: pointer;
font-family: Lato; font-family: Lato;
&:focus { &:focus {
@ -82,8 +83,11 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
color: white !important; color: white !important;
border: none; border: none;
&:active { &:active, &:focus, &:hover {
box-shadow: inset 1px 1px 3px rgba(0,0,0,.15); box-shadow: inset 1px 1px 3px rgba(0,0,0,.15);
background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%);
background-color: transparent;
border: none;
} }
} }
.secondary { .secondary {
@ -96,6 +100,11 @@
&:active { &:active {
border: 0.15rem solid #F64D0A; border: 0.15rem solid #F64D0A;
} }
&:focus, &:hover {
background-color: transparent;
color: #F64D0A;
border: 0.1rem solid #F64D0A;
}
} }
.bordered { .bordered {
margin-top: -.4rem; margin-top: -.4rem;

View File

@ -90,16 +90,16 @@
"postcss-smart-import": "^0.7.5", "postcss-smart-import": "^0.7.5",
"precss": "^2.0.0", "precss": "^2.0.0",
"prettier": "^1.5.3", "prettier": "^1.5.3",
"react": "^16.0.0-rc.3", "react": "^16.0.0",
"react-datetime": "^2.8.6", "react-datetime": "^2.8.6",
"react-dom": "^16.0.0-rc.3", "react-dom": "^16.0.0",
"react-helmet": "^5.1.3", "react-helmet": "^5.1.3",
"react-intl": "^2.3.0", "react-intl": "^2.3.0",
"react-redux": "^5.0.6", "react-redux": "^5.0.6",
"react-router-dom": "^4.1.2", "react-router-dom": "^4.1.2",
"react-router-redux": "^5.0.0-alpha.6", "react-router-redux": "^5.0.0-alpha.6",
"react-transition-group": "^2.2.0", "react-transition-group": "^2.2.0",
"reactstrap": "^5.0.0-alpha.1", "reactstrap": "^5.0.0-alpha.3",
"redux": "^3.7.2", "redux": "^3.7.2",
"redux-immutable": "^4.0.0", "redux-immutable": "^4.0.0",
"redux-saga": "^0.15.6", "redux-saga": "^0.15.6",
@ -115,4 +115,4 @@
"webpack-hot-middleware": "^2.18.2", "webpack-hot-middleware": "^2.18.2",
"whatwg-fetch": "^2.0.3" "whatwg-fetch": "^2.0.3"
} }
} }

View File

@ -13,7 +13,7 @@
line-height: 2.9rem; line-height: 2.9rem;
font-weight: 600; font-weight: 600;
margin-bottom: 2px; margin-bottom: 2px;
> i { > i {
margin-top: 1.1rem; margin-top: 1.1rem;
margin-left: 1rem; margin-left: 1rem;
@ -46,7 +46,7 @@
} }
.buttonContainer { .buttonContainer {
padding-top: .3rem; padding-top: .4rem;
> button:last-child { > button:last-child {
margin-right: 0; margin-right: 0;
} }

View File

@ -23,7 +23,7 @@
.ulContainer { .ulContainer {
> ul { > ul {
margin-top: 1.6rem; margin-top: 1.5rem;
padding: 0; padding: 0;
list-style: none; list-style: none;
} }

View File

@ -88,7 +88,7 @@
position: relative; position: relative;
> button { > button {
z-index: 999; z-index: 999;
margin-right: -1.5rem; margin-right: -1.5rem;
color: #C3C5C8; color: #C3C5C8;
opacity: 1; opacity: 1;
@ -97,7 +97,7 @@
&:hover, &:focus { &:hover, &:focus {
color: #C3C5C8; color: #C3C5C8;
opacity: 1; opacity: 1;
outline: 0; outline: 0!important;
} }
> span { > span {
display: none; display: none;
@ -130,6 +130,11 @@
background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%); background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%);
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
color: white!important; color: white!important;
&:hover, &:active {
border: none!important;
background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%);
color: white;
}
} }
.secondary { .secondary {
@ -138,7 +143,8 @@
color: #F64D0A; color: #F64D0A;
border: 0.1rem solid #F64D0A; border: 0.1rem solid #F64D0A;
cursor: pointer; cursor: pointer;
&:hover { background-color: transparent;
&:hover, &:active {
color: #F64D0A; color: #F64D0A;
background-color: white; background-color: white;
border: 0.1rem solid #F64D0A; border: 0.1rem solid #F64D0A;

View File

@ -184,7 +184,8 @@
color: #F64D0A; color: #F64D0A;
border: 0.1rem solid #F64D0A; border: 0.1rem solid #F64D0A;
cursor: pointer; cursor: pointer;
&:hover { background-color: transparent;
&:hover, &:active {
color: #F64D0A; color: #F64D0A;
background-color: white; background-color: white;
border: 0.1rem solid #F64D0A; border: 0.1rem solid #F64D0A;

View File

@ -29,7 +29,7 @@
padding: 0; padding: 0;
list-style: none; list-style: none;
> li:first-child { > li:first-child {
margin-top: 0rem; margin-top: 0.1rem;
border-radius: 2px 2px 0 0; border-radius: 2px 2px 0 0;
background-color: #F3F3F4; background-color: #F3F3F4;
} }

View File

@ -31,7 +31,6 @@
"react": "^15.6.1", "react": "^15.6.1",
"react-dom": "^15.6.1", "react-dom": "^15.6.1",
"react-transition-group": "^1.2.0", "react-transition-group": "^1.2.0",
"reactstrap": "^4.8.0",
"strapi-generate": "3.0.0-alpha.5.5", "strapi-generate": "3.0.0-alpha.5.5",
"strapi-generate-api": "3.0.0-alpha.5.5" "strapi-generate-api": "3.0.0-alpha.5.5"
}, },
@ -70,4 +69,4 @@
"npm": ">= 3.0.0" "npm": ">= 3.0.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -176,12 +176,19 @@ button {
background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%); background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%);
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
color: white!important; color: white!important;
&:active, &:focus, &:hover {
box-shadow: inset 1px 1px 3px rgba(0,0,0,.15);
background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%);
background-color: transparent;
border: none;
}
} }
.secondary { .secondary {
font-family: Lato; font-family: Lato;
color: #F64D0A; color: #F64D0A;
border: 0.1rem solid #F64D0A; border: 0.1rem solid #F64D0A;
background-color: transparent;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
color: #F64D0A; color: #F64D0A;

View File

@ -72,6 +72,7 @@
width: 15rem; width: 15rem;
border: none; border: none;
background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%); background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%);
-webkit-font-smoothing: antialiased;
&:active { &:active {
background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%); background: linear-gradient(315deg, #0097F6 0%, #005EEA 100%);
background-color: none!important; background-color: none!important;
@ -86,6 +87,11 @@
width: 15rem; width: 15rem;
color: #F64D0A; color: #F64D0A;
border: 0.1rem solid #F64D0A; border: 0.1rem solid #F64D0A;
&:focus, &:hover {
background-color: transparent;
color: #F64D0A;
border: 0.1rem solid #F64D0A;
}
} }
.buttonContainer { .buttonContainer {
@ -94,6 +100,35 @@
display: flex; display: flex;
margin-top: 3rem; margin-top: 3rem;
justify-content: space-between; justify-content: space-between;
> button {
height: 3rem;
width: 15rem;
position: relative;
border-radius: 0.3rem;
text-transform: capitalize;
background-color: transparent;
cursor: pointer;
font-family: Lato;
&:focus {
outline: 0;
}
> i {
margin-right: 1.3rem;
}
&:hover {
&::after {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border-radius: 0.3rem;
content: '';
opacity: 0.1;
background: #FFFFFF;
}
}
}
} }
.modalBody { .modalBody {

View File

@ -29,8 +29,7 @@
"react": "^15.6.1", "react": "^15.6.1",
"react-dom": "^15.6.1", "react-dom": "^15.6.1",
"react-select": "^1.0.0-rc.5", "react-select": "^1.0.0-rc.5",
"react-transition-group": "^1.2.0", "react-transition-group": "^1.2.0"
"reactstrap": "^4.8.0"
}, },
"devDependencies": { "devDependencies": {
"cross-env": "^5.0.5", "cross-env": "^5.0.5",
@ -67,4 +66,4 @@
"npm": ">= 3.0.0" "npm": ">= 3.0.0"
}, },
"license": "MIT" "license": "MIT"
} }