Add RTL build scripts

This commit is contained in:
Jeremy Thomas 2020-03-23 12:14:36 +00:00
parent 850db4bcc4
commit 71ca950476
8 changed files with 10922 additions and 28 deletions

3
bulma-rtl.sass Normal file
View File

@ -0,0 +1,3 @@
@charset "utf-8"
$rtl: true
@import "bulma"

10858
css/bulma-rtl.css Normal file

File diff suppressed because it is too large Load Diff

1
css/bulma-rtl.css.map Normal file

File diff suppressed because one or more lines are too long

1
css/bulma-rtl.min.css vendored Normal file

File diff suppressed because one or more lines are too long

72
css/bulma.css vendored
View File

@ -308,7 +308,7 @@ th {
td:not([align]), td:not([align]),
th:not([align]) { th:not([align]) {
text-align: left; text-align: inherit;
} }
html { html {
@ -441,7 +441,7 @@ table th {
table td:not([align]), table td:not([align]),
table th:not([align]) { table th:not([align]) {
text-align: left; text-align: inherit;
} }
table th { table th {
@ -3172,7 +3172,7 @@ fieldset[disabled] .button {
} }
.content table th:not([align]) { .content table th:not([align]) {
text-align: left; text-align: inherit;
} }
.content table thead td, .content table thead td,
@ -3369,8 +3369,8 @@ fieldset[disabled] .button {
.notification { .notification {
background-color: whitesmoke; background-color: whitesmoke;
border-radius: 4px; border-radius: 4px;
padding: 1.25rem 2.5rem 1.25rem 1.5rem;
position: relative; position: relative;
padding: 1.25rem 2.5rem 1.25rem 1.5rem;
} }
.notification a:not(.button):not(.dropdown-item) { .notification a:not(.button):not(.dropdown-item) {
@ -3392,8 +3392,8 @@ fieldset[disabled] .button {
} }
.notification > .delete { .notification > .delete {
position: absolute;
right: 0.5rem; right: 0.5rem;
position: absolute;
top: 0.5rem; top: 0.5rem;
} }
@ -3428,31 +3428,61 @@ fieldset[disabled] .button {
color: #fff; color: #fff;
} }
.notification.is-primary.is-light {
background-color: #ebfffc;
color: #00947e;
}
.notification.is-link { .notification.is-link {
background-color: #3273dc; background-color: #3273dc;
color: #fff; color: #fff;
} }
.notification.is-link.is-light {
background-color: #eef3fc;
color: #2160c4;
}
.notification.is-info { .notification.is-info {
background-color: #3298dc; background-color: #3298dc;
color: #fff; color: #fff;
} }
.notification.is-info.is-light {
background-color: #eef6fc;
color: #1d72aa;
}
.notification.is-success { .notification.is-success {
background-color: #48c774; background-color: #48c774;
color: #fff; color: #fff;
} }
.notification.is-success.is-light {
background-color: #effaf3;
color: #257942;
}
.notification.is-warning { .notification.is-warning {
background-color: #ffdd57; background-color: #ffdd57;
color: rgba(0, 0, 0, 0.7); color: rgba(0, 0, 0, 0.7);
} }
.notification.is-warning.is-light {
background-color: #fffbeb;
color: #947600;
}
.notification.is-danger { .notification.is-danger {
background-color: #f14668; background-color: #f14668;
color: #fff; color: #fff;
} }
.notification.is-danger.is-light {
background-color: #feecf0;
color: #cc0f35;
}
.progress { .progress {
-moz-appearance: none; -moz-appearance: none;
-webkit-appearance: none; -webkit-appearance: none;
@ -3803,7 +3833,7 @@ fieldset[disabled] .button {
} }
.table th:not([align]) { .table th:not([align]) {
text-align: left; text-align: inherit;
} }
.table tr.is-selected { .table tr.is-selected {
@ -4289,23 +4319,23 @@ a.tag:hover {
background-color: white; background-color: white;
border-color: #dbdbdb; border-color: #dbdbdb;
border-radius: 4px; border-radius: 4px;
color: #363636; color: inherit;
} }
.input::-moz-placeholder, .textarea::-moz-placeholder, .select select::-moz-placeholder { .input::-moz-placeholder, .textarea::-moz-placeholder, .select select::-moz-placeholder {
color: rgba(54, 54, 54, 0.3); color: inherit;
} }
.input::-webkit-input-placeholder, .textarea::-webkit-input-placeholder, .select select::-webkit-input-placeholder { .input::-webkit-input-placeholder, .textarea::-webkit-input-placeholder, .select select::-webkit-input-placeholder {
color: rgba(54, 54, 54, 0.3); color: inherit;
} }
.input:-moz-placeholder, .textarea:-moz-placeholder, .select select:-moz-placeholder { .input:-moz-placeholder, .textarea:-moz-placeholder, .select select:-moz-placeholder {
color: rgba(54, 54, 54, 0.3); color: inherit;
} }
.input:-ms-input-placeholder, .textarea:-ms-input-placeholder, .select select:-ms-input-placeholder { .input:-ms-input-placeholder, .textarea:-ms-input-placeholder, .select select:-ms-input-placeholder {
color: rgba(54, 54, 54, 0.3); color: inherit;
} }
.input:hover, .textarea:hover, .select select:hover, .is-hovered.input, .is-hovered.textarea, .select select.is-hovered { .input:hover, .textarea:hover, .select select:hover, .is-hovered.input, .is-hovered.textarea, .select select.is-hovered {
@ -5210,7 +5240,7 @@ fieldset[disabled] .select select:hover {
display: block; display: block;
max-width: 16em; max-width: 16em;
overflow: hidden; overflow: hidden;
text-align: left; text-align: inherit;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
@ -5493,7 +5523,7 @@ fieldset[disabled] .select select:hover {
clear: both; clear: both;
font-size: 1rem; font-size: 1rem;
position: relative; position: relative;
text-align: left; text-align: inherit;
} }
.control.has-icons-left .input:focus ~ .icon, .control.has-icons-left .input:focus ~ .icon,
@ -5781,7 +5811,7 @@ fieldset[disabled] .select select:hover {
a.dropdown-item, a.dropdown-item,
button.dropdown-item { button.dropdown-item {
padding-right: 3rem; padding-right: 3rem;
text-align: left; text-align: inherit;
white-space: nowrap; white-space: nowrap;
width: 100%; width: 100%;
} }
@ -5960,7 +5990,7 @@ a.list-item {
.media { .media {
align-items: flex-start; align-items: flex-start;
display: flex; display: flex;
text-align: left; text-align: inherit;
} }
.media .content:not(:last-child) { .media .content:not(:last-child) {
@ -6016,7 +6046,7 @@ a.list-item {
flex-basis: auto; flex-basis: auto;
flex-grow: 1; flex-grow: 1;
flex-shrink: 1; flex-shrink: 1;
text-align: left; text-align: inherit;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
@ -7157,7 +7187,6 @@ a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover, a.navbar-i
} }
.navbar-item { .navbar-item {
display: block;
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;
} }
@ -10718,21 +10747,18 @@ label.panel-block:hover {
} }
.hero.is-small .hero-body { .hero.is-small .hero-body {
padding-bottom: 1.5rem; padding: 1.5rem;
padding-top: 1.5rem;
} }
@media screen and (min-width: 769px), print { @media screen and (min-width: 769px), print {
.hero.is-medium .hero-body { .hero.is-medium .hero-body {
padding-bottom: 9rem; padding: 9rem 1.5rem;
padding-top: 9rem;
} }
} }
@media screen and (min-width: 769px), print { @media screen and (min-width: 769px), print {
.hero.is-large .hero-body { .hero.is-large .hero-body {
padding-bottom: 18rem; padding: 18rem 1.5rem;
padding-top: 18rem;
} }
} }

File diff suppressed because one or more lines are too long

2
css/bulma.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -34,18 +34,23 @@
"rimraf": "^3.0.2" "rimraf": "^3.0.2"
}, },
"scripts": { "scripts": {
"build": "npm run build-clean && npm run build-sass && npm run build-autoprefix && npm run build-cleancss", "build": "npm run build-sass && npm run build-autoprefix && npm run build-cleancss",
"build-autoprefix": "postcss --use autoprefixer --map false --output css/bulma.css css/bulma.css", "build-autoprefix": "postcss --use autoprefixer --map false --output css/bulma.css css/bulma.css",
"build-cleancss": "cleancss -o css/bulma.min.css css/bulma.css", "build-cleancss": "cleancss -o css/bulma.min.css css/bulma.css",
"build-clean": "rimraf css",
"build-sass": "node-sass --output-style expanded --source-map true bulma.sass css/bulma.css", "build-sass": "node-sass --output-style expanded --source-map true bulma.sass css/bulma.css",
"deploy": "npm run build", "clean": "rimraf css",
"rtl": "npm run rtl-sass && npm run rtl-autoprefix && npm run rtl-cleancss",
"rtl-sass": "node-sass --output-style expanded --source-map true bulma-rtl.sass css/bulma-rtl.css",
"rtl-autoprefix": "postcss --use autoprefixer --map false --output css/bulma-rtl.css css/bulma-rtl.css",
"rtl-cleancss": "cleancss -o css/bulma-rtl.min.css css/bulma-rtl.css",
"deploy": "npm run clean && npm run build && npm run rtl",
"start": "npm run build-sass -- --watch" "start": "npm run build-sass -- --watch"
}, },
"files": [ "files": [
"css", "css",
"sass", "sass",
"bulma.sass", "bulma.sass",
"bulma-rtl.sass",
"LICENSE", "LICENSE",
"README.md" "README.md"
] ]