Skip to content

Commit

Permalink
Fix theming (close #714) and font-size for content (close #713)
Browse files Browse the repository at this point in the history
  • Loading branch information
t4t5 committed Sep 8, 2017
1 parent 42f2ae8 commit 419bf67
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/assets/sweetalert/sweetalert.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sweetalert",
"version": "2.0.2",
"version": "2.0.3",
"description": "A beautiful replacement for JavaScript's \"alert\"",
"main": "dist/sweetalert.min.js",
"scripts": {
Expand Down
10 changes: 7 additions & 3 deletions src/css/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
padding: 10px 24px;
margin: 0;
cursor: pointer;
&:hover {
&[not:disabled]:hover {
background-color: var(--swal-btn-confirm-hover);
}
&:active {
Expand All @@ -53,6 +53,10 @@
0px 0px 0px 1px white,
0px 0px 0px 3px rgba(43, 114, 165, 0.29);
}
&[disabled] {
opacity: 0.5;
cursor: default;
}
/* Remove ugly dotted lines in FireFox: */
&::-moz-focus-inner {
border: 0;
Expand All @@ -61,7 +65,7 @@
&--cancel {
color: #555555;
background-color: var(--swal-btn-cancel);
&:hover {
&[not:disabled]:hover {
background-color: var(--swal-btn-cancel-hover);
}
&:active {
Expand All @@ -76,7 +80,7 @@

&--danger {
background-color: var(--swal-btn-danger);
&:hover {
&[not:disabled]:hover {
background-color: var(--swal-btn-danger-hover);
}
&:active {
Expand Down
1 change: 1 addition & 0 deletions src/css/content.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.swal-content {
padding: 0 20px;
margin-top: 20px;
font-size: initial;

&:last-child {
margin-bottom: 20px;
Expand Down
10 changes: 8 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,15 @@ module.exports = (_env, args) => {
/* Use PostCSS */
test: /\.css$/,
use: [
'style-loader',
{
loader: 'style-loader',
options: {
insertAt: 'top',
},
},
{
loader: 'css-loader', options: {
loader: 'css-loader',
options: {
importLoaders: 1
}
},
Expand Down

0 comments on commit 419bf67

Please sign in to comment.