aboutsummaryrefslogtreecommitdiff
path: root/app/scss
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-22 12:39:35 +0000
committerGitHub <noreply@github.com>2018-12-22 12:39:35 +0000
commitf6384e2e156b190753b8ba5c57e66b6d7304b5a1 (patch)
treebd1de64bb9040f540caa45ca4c60288f32961835 /app/scss
parentc9bf7a32451069c0697c8a18dddad7aa1a2bd8af (diff)
parent09a201759bb327a889cf017d5f3c49f8258713c1 (diff)
downloadcheatdb-f6384e2e156b190753b8ba5c57e66b6d7304b5a1.tar.xz
Merge minetest/bootstrap into master
Diffstat (limited to 'app/scss')
-rw-r--r--app/scss/components.scss388
-rw-r--r--app/scss/custom.scss41
-rw-r--r--app/scss/main.scss6
-rw-r--r--app/scss/nav.scss90
-rw-r--r--app/scss/packagegrid.scss2
-rw-r--r--app/scss/packages.scss28
-rw-r--r--app/scss/page.scss56
7 files changed, 47 insertions, 564 deletions
diff --git a/app/scss/components.scss b/app/scss/components.scss
index f4941f6..4789a79 100644
--- a/app/scss/components.scss
+++ b/app/scss/components.scss
@@ -1,112 +1,3 @@
-h1 {
- margin: 0;
-}
-
-h2, h3 {
- margin: 5px 0;
-}
-
-a {
- color: #0be;
- font-weight: bold;
- text-decoration: none;
-}
-
-a:hover {
- color: #0df;
- text-decoration: underline;
-}
-
-/* Containers */
-
-.box {
- border-radius: 5px;
- margin: 15px 0;
- padding: 0;
-}
-
-.box > h2, .box > h3 {
- margin: 0;
- padding: 0.5em 0.5em 0.5em 15px;
- border-bottom: 1px solid #444;
-}
-
-.box .box-body {
- padding: 1em !important;
-}
-
-// .box form {
-// padding: 1em;
-// }
-
-.box_grey {
- background: #333;
- border: 1px solid #444;
-}
-
-.ul_boxes {
- display: block;
- margin: 0;
- padding: 0;
- list-style: none;
-}
-
-.ul_boxes > li {
- padding: 0;
- list-style: none;
-}
-
-.box_link {
- display: block;
- color: #ddd;
- text-decoration: none;
-}
-
-.box_link:hover{
- background: #3a3a3a;
-}
-
-
-/*
- buttonset
-*/
-
-.buttonset, .buttonset li {
- display: block;
- margin: 0;
- padding: 0;
- list-style: none;
-}
-
-.buttonset {
- margin: 15px 0;
-}
-
-.button, .buttonset li a, input[type=submit] {
- cursor: pointer;
-}
-
-.button, .buttonset li a, input[type=submit], input[type=text],
- input[type=password], textarea, select, .bulletselector {
- text-align: center;
- display: inline-block;
- padding: 0.4em 1em;
- background: rgba(255,255,255,0.07);
- border: 1px solid rgba(255,255,255,0.1);
- color: #ddd;
- border-radius: 5px;
- text-decoration: none;
- font-size: 100%;
-}
-
-select > * {
- color: #222;
-}
-
-input[type=text], input[type=password], textarea, select, .bulletselector {
- text-align: left;
-}
-
.ui-autocomplete, ui-front {
position:absolute;
cursor:default;
@@ -133,74 +24,6 @@ input[type=text], input[type=password], textarea, select, .bulletselector {
}
}
-select {
- min-width: 200px;
-}
-
-select:not([multiple]) {
- background: linear-gradient(#444, #333);
-}
-
-.form-group {
- padding: 8px 0;
-}
-
-.form-group label {
- display: block;
- vertical-align: top;
- padding: 0 8px 8px 0;
-}
-
-.form-group input, .form-group textarea, .form-group .bulletselector {
- display: block;
- min-width: 100%;
- max-width: 100%;
-}
-
-.box .form-group input, .box .form-group textarea, .form-group .bulletselector {
- min-width: 95%;
- max-width: 95%;
-}
-
-.form-group textarea {
- min-height: 200px;
-}
-
-.button:hover, .buttonset li a:hover, input[type=submit]:hover {
- background: rgba(255,255,255,0.13);
- border: 1px solid rgba(255,255,255,0.17);
- text-decoration: none;
- color: #ddd;
-}
-
-.btn_green {
- background: #363 !important;
- border: 1px solid #473;
-}
-
-.btn_green:hover {
- background: #474 !important;
-}
-
-.linedbuttonset a {
- border: 1px solid #eee;
- border-radius: 3px;
- padding: 4px 10px;
- margin: 0;
- display: block;
-}
-
-.linedbuttonset {
- display: block;
- margin: 0;
-}
-
-.linedbuttonset li {
- display: inline-block;
- margin: 10px 10px 0 0;
-}
-
-
.bulletselector input {
border: none;
border-radius: 0;
@@ -215,166 +38,14 @@ select:not([multiple]) {
white-space: nowrap;
background: transparent;
}
-.bulletselector .tag {
- background: #375D81;
- border-radius: 3px;
- -moz-border-radius: 3px;
- color: #FFF;
+.bulletselector .badge {
float: left;
- height: 15px;
- padding: 0.1em 0.4em 0.5em;
+ padding: 0.4em 0.8em;
margin-right: 0.3em;
- margin-bottom: 0.3em;
- vertical-align: baseline;
-}
-.bulletselector .tag a {
- color: #FFF;
- cursor: pointer;
-}
-.bulletselector .tag a:hover {
- color: #0099CC;
- text-decoration: none;
-}
-
-
-/* Alerts */
-
-
-.alert .alert_right, .alert > form {
- display: inline-block;
- margin: 0;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
-}
-
-.alert {
- padding: 10px;
- position: relative;
-
- .alert_right:not(.button) {
- padding: 0;
- }
-
- .alert_right form {
- height: 100%;
- }
-
- form {
- display: inline-block;
- margin: 0;
- padding: 0;
- }
-
- input {
- height: 100%;
- }
-
- input, .button {
- margin: 0;
- background: 0;
- border: 0;
- border-left: 1px solid rgba(255,255,255,0.12);
- border-radius: 0;
- vertical-align: middle;
- }
-
- input:hover, .button:hover {
- border: 0;
- border-left: 1px solid rgba(255,255,255,0.2);
- }
-}
-
-#alerts {
- list-style: none;
- position: fixed;
- bottom: 15px;
- left: 0;
- right: 0;
- z-index: 1000;
-}
-
-#alerts .alert {
- margin: 5px 0;
- vertical-align: middle;
-}
-
-#alerts .close {
- float: right;
- color: white;
-}
-
-#alerts .close:hover {
- color: #fff;
-}
-
-.alert-error, .button-danger {
- background: #933 !important;
- border: 1px solid #c44 !important;
}
-.alert-warning {
- background: #963;
- border: 1px solid #c96;
-}
-
-.alert-primary {
- background: #339;
- border: 1px solid #66a;
-}
-
-.alert-success {
- background: #161;
- border: 1px solid #393;
-}
-
-table.fancyTable {
- font-family: "Arial Black", Gadget, sans-serif;
- border: 2px solid #000000;
- background-color: #4A4A4A;
- width: 100%;
- text-align: center;
- border-collapse: collapse;
-}
-table.fancyTable td, table.fancyTable th {
- border: 1px solid #4A4A4A;
- padding: 3px 2px;
-}
-table.fancyTable tbody td {
- font-size: 13px;
- color: #E6E6E6;
-}
-table.fancyTable tr:nth-child(even) {
- background: #888888;
-}
-table.fancyTable thead {
- background: #000000;
- border-bottom: 3px solid #000000;
-}
-table.fancyTable thead th {
- font-size: 15px;
- font-weight: bold;
- color: #E6E6E6;
- text-align: center;
- border-left: 2px solid #4A4A4A;
-}
-table.fancyTable thead th:first-child {
- border-left: none;
-}
-
-table.fancyTable tfoot {
- font-size: 12px;
- font-weight: bold;
- color: #E6E6E6;
- background: #000000;
- background: -moz-linear-gradient(top, #404040 0%, #191919 66%, #000000 100%);
- background: -webkit-linear-gradient(top, #404040 0%, #191919 66%, #000000 100%);
- background: linear-gradient(to bottom, #404040 0%, #191919 66%, #000000 100%);
- border-top: 1px solid #4A4A4A;
-}
-table.fancyTable tfoot td {
- font-size: 12px;
+.invalid-remaining {
+ display: none;
}
.t-mll tr td:not(:first-child) {
@@ -405,57 +76,6 @@ table.fancyTable tfoot td {
color: #2c2;
}
-/*
- Aside
-*/
-
-.asideright {
- float: right;
- margin: 0 0 0 15px;
- max-width: 300px;
-}
-
-.outsidecontainer {
- position: absolute;
- right: 102%;
- top: 0;
- width: intrinsic; /* Safari/WebKit uses a non-standard name */
- width: -moz-max-content; /* Firefox/Gecko */
- width: -webkit-max-content; /* Chrome */
-}
-
-@media (max-width: 1490px) {
- .outsidecontainer {
- display: none;
- }
-}
-
-.flatlist, .flatlist li {
- list-style: none;
- padding: 0;
- margin: 0;
-}
-
-.flatlist li {
- display: block;
-}
-
-.flatlist a {
- display: block;
- padding: 0.5em 20px;
- color: #ddd;
- font-weight: normal;
-}
-
-.flatlist a:hover {
- background: #444;
- text-decoration: none;
-}
-
-.table-topalign td {
- vertical-align: top;
-}
-
.wiptopic a {
color: #7ac;
}
diff --git a/app/scss/custom.scss b/app/scss/custom.scss
new file mode 100644
index 0000000..559fea8
--- /dev/null
+++ b/app/scss/custom.scss
@@ -0,0 +1,41 @@
+@import "components.scss";
+@import "packages.scss";
+@import "packagegrid.scss";
+@import "comments.scss";
+
+.dropdown-menu {
+ margin-top: 0;
+}
+
+.dropdown:hover .dropdown-menu {
+ display: block;
+}
+
+.nav-link > img {
+ max-height: 1em;
+}
+
+.jumbotron {
+ background-size: cover;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.alert .btn {
+ text-decoration: none;
+}
+
+.card .table {
+ margin-bottom: 0;
+}
+
+.btn-download {
+ color: #fff;
+ background-color: #00b05c;
+ border-color: #00b05c;
+}
+
+.btn-download:focus, .btn-download.focus {
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.5);
+ box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.5);
+}
diff --git a/app/scss/main.scss b/app/scss/main.scss
deleted file mode 100644
index 5cb4ef2..0000000
--- a/app/scss/main.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@import "page.scss";
-@import "components.scss";
-@import "nav.scss";
-@import "packages.scss";
-@import "packagegrid.scss";
-@import "comments.scss";
diff --git a/app/scss/nav.scss b/app/scss/nav.scss
deleted file mode 100644
index 84bce08..0000000
--- a/app/scss/nav.scss
+++ /dev/null
@@ -1,90 +0,0 @@
-nav {
- margin: 0 auto 0 auto;
- list-style: none;
- background: #333;
-}
-
-nav .navbar-left {
- float: left;
-}
-
-nav .navbar-left li {
- float: left;
-}
-
-nav .navbar-right {
- float: right;
-}
-
-nav ul {
- margin: 0 auto 0 auto;
- padding: 0;
- list-style: none;
-}
-
-nav li {
- margin: 0;
- padding: 0;
- list-style: none;
- display: inline-block;
-}
-
-nav li a {
- color: #ddd;
- margin: 0;
- padding: 1em 1em;
- display: block;
- border-left: 1px solid #444;
-}
-
-nav li a:not([href]) {
- cursor: default;
-}
-
-nav ul li:last-child a {
- border-right: 1px solid #444;
-}
-
-nav a:hover {
- color: #eee;
- background: #444;
- text-decoration: none;
-}
-
-nav img {
- height: 1em;
-}
-
-li.dropdown {
- position: relative;
- display: inline-block;
-}
-
-.dropdown-menu {
- display: none;
- position: absolute;
- margin: 0;
- padding: 0;
- min-width:160px;
- background: #333;
- z-index: 1;
- right: 0;
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
-}
-
-.dropdown:hover ul {
- display: block;
-}
-
-.dropdown li {
- display: block;
-}
-
-.dropdown li a {
- border: none;
- border-top: 1px solid #444;
-}
-
-.dropdown li:last-child a {
- border-bottom: 1px solid #444;
-}
diff --git a/app/scss/packagegrid.scss b/app/scss/packagegrid.scss
index 152b850..cc0b0de 100644
--- a/app/scss/packagegrid.scss
+++ b/app/scss/packagegrid.scss
@@ -53,6 +53,8 @@
.packagegridinfo h3 {
color: white;
+ font-size: 120%;
+ font-weight: bold;
}
.packagegridinfo p {
diff --git a/app/scss/packages.scss b/app/scss/packages.scss
index f40f037..3ef2abc 100644
--- a/app/scss/packages.scss
+++ b/app/scss/packages.scss
@@ -37,34 +37,6 @@
left: 15px;
}
-.sidebar_container {
- display: block;
- position: relative;
- padding: 0;
- margin: 0;
-}
-
-.sidebar_container .right, .sidebar_container .left{
- position: absolute;
- display: block;
- top: 10px;
- margin-top: 0;
-}
-
-.sidebar_container .right {
- right: 0;
- width: 280px;
-}
-
-.sidebar_container .left {
- right: 295px;
- left: 0;
-}
-
-.sidebar_container .right > *:first-child, .sidebar_container .left > *:first-child {
- margin-top: 0;
-}
-
.package-short-large {
font-size: 120%;
}
diff --git a/app/scss/page.scss b/app/scss/page.scss
deleted file mode 100644
index fdf3af7..0000000
--- a/app/scss/page.scss
+++ /dev/null
@@ -1,56 +0,0 @@
-html, body {
- font-family: "Arial", sans-serif;
- background: #222;
- color: #ddd;
- padding: 0;
- margin: 0;
-}
-
-.container, main, #alerts, footer {
- width: 90%;
- max-width: 1024px;
- margin: auto;
- padding: 0;
- display: block;
-}
-
-main {
- padding: 7px 0;
- position: relative;
- box-sizing: border-box;
-}
-
-.clearboth {
- clear: both;
-}
-
-header h1, header p, header form {
- padding: 0 5px;
- margin-left: 0;
-}
-
-header {
- padding: 30px;
- background: #258;
-}
-
-header p {
- max-width: 400px;
-}
-
-header input {
- margin: 3px;
-}
-
-footer {
- color: #999;
- padding: 30px 0;
-}
-
-footer a {
- color: #aaa;
-}
-
-footer a:hover {
- color: #bbb;
-}