1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-23 12:15:06 +03:00

Move }s to new lines in CSS files

This commit is contained in:
Artyom 2016-06-19 22:41:02 +03:00
parent 29e8dc83fd
commit 410cfb179b
2 changed files with 128 additions and 65 deletions

View File

@ -3,80 +3,100 @@
100%+20px) */ 100%+20px) */
*, *:before, *:after { *, *:before, *:after {
box-sizing: border-box; } box-sizing: border-box;
}
body { body {
font-family: sans-serif; } font-family: sans-serif;
}
.text-button { .text-button {
font-size: 10pt; font-size: 10pt;
font-weight: normal; } font-weight: normal;
}
.text-button::before {content: "[";} .text-button::before {content: "[";}
.text-button::after {content: "]";} .text-button::after {content: "]";}
textarea { textarea {
font-size: 100%; } font-size: 100%;
}
input { input {
font-size: 100%; } font-size: 100%;
}
.text-button > a:visited {color: #008ACE;} .text-button > a:visited {color: #008ACE;}
textarea { textarea {
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 5px 7px; } padding: 5px 7px;
}
textarea:focus { textarea:focus {
outline: 0px none; outline: 0px none;
border: 1px solid #07C; } border: 1px solid #07C;
}
.edit { .edit {
padding: 0.3em 1em; padding: 0.3em 1em;
margin: 1em 0.5em; margin: 1em 0.5em;
box-shadow: 0 1px 5px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); } box-shadow: 0 1px 5px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.edit-info { .edit-info {
color: gray; color: gray;
opacity: 0.8; } opacity: 0.8;
}
#edits > * > h2 { #edits > * > h2 {
margin-top: 3em; } margin-top: 3em;
}
#edits table { #edits table {
width: 100%; width: 100%;
border: none; border: none;
table-layout: fixed; } table-layout: fixed;
}
#edits td { #edits td {
width: 100%; width: 100%;
vertical-align: top; vertical-align: top;
padding: 0.5em 0.5em; } padding: 0.5em 0.5em;
}
#edits td:first-child { #edits td:first-child {
padding-left: 0; } padding-left: 0;
}
#edits td:last-child { #edits td:last-child {
padding-right: 0; } padding-right: 0;
}
#stats table { #stats table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
empty-cells: show; empty-cells: show;
border: 1px solid gray; border: 1px solid gray;
margin-bottom: 1em; } margin-bottom: 1em;
}
#stats thead { #stats thead {
background-color: #e0e0e0; } background-color: #e0e0e0;
}
#stats th { #stats th {
text-align: left; } text-align: left;
}
#stats th, #stats td { #stats th, #stats td {
padding: 0.5em 1em; } padding: 0.5em 1em;
}
table.sortable th { table.sortable th {
cursor: pointer; } cursor: pointer;
}
table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after { table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after {
content: " \25B4\25BE"; } content: " \25B4\25BE";
}

View File

@ -3,27 +3,29 @@
100%+20px) */ 100%+20px) */
*, *:before, *:after { *, *:before, *:after {
box-sizing: border-box; } box-sizing: border-box;
}
/* Making the footer stick to the bottom of the screen */ /* Making the footer stick to the bottom of the screen */
body { body {
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;
flex-direction: column; } flex-direction: column;
}
#main { #main {
flex: 1; } flex: 1;
}
/* headers look bad when the width is small, so */ /* headers look bad when the width is small, so */
h1 { h1 {
line-height: 100%; } line-height: 100%;
}
/* Other CSS */ /* Other CSS */
/* TODO: move }s to new lines */
#footer { #footer {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
@ -31,16 +33,19 @@ h1 {
padding: 1.5em 0 0em 0; padding: 1.5em 0 0em 0;
margin: 0 -1em; margin: 0 -1em;
margin-top: 2em; margin-top: 2em;
border-top: 1px solid black; } border-top: 1px solid black;
}
.footer-item { .footer-item {
margin: 0 1em; margin: 0 1em;
min-height: 40px; min-height: 40px;
text-align: center; } text-align: center;
}
.unemployed { .unemployed {
font-size: 50%; font-size: 50%;
margin-top: -0.3em; } margin-top: -0.3em;
}
body { body {
padding: 0px 15px; padding: 0px 15px;
@ -48,36 +53,44 @@ body {
margin: auto; margin: auto;
max-width: 800px; max-width: 800px;
font-family: sans-serif; font-family: sans-serif;
line-height: 120%; } line-height: 120%;
}
#noscript-message { #noscript-message {
padding: 1px 1em; padding: 1px 1em;
background-color: #FFEBEE; } background-color: #FFEBEE;
}
#search { #search {
font-size: 200%; font-size: 200%;
border: 1px solid #d0d0d0; border: 1px solid #d0d0d0;
padding: 3px 10px; padding: 3px 10px;
width: 100%; } width: 100%;
}
#categories { #categories {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
justify-content: space-between; justify-content: space-between;
margin-top: 1em; } margin-top: 1em;
}
#categories a { #categories a {
font-weight: bold; font-weight: bold;
line-height: 140%; line-height: 140%;
font-size: 110%; font-size: 110%;
padding: 2px 1px; } padding: 2px 1px;
}
#categories a.status-mostly-done { #categories a.status-mostly-done {
background-color: #fdd; } background-color: #fdd;
}
#categories a.status-wip { #categories a.status-wip {
background-color: #faa; } background-color: #faa;
}
#categories a.status-stub { #categories a.status-stub {
background-color: #f78; } background-color: #f78;
}
#categories .status { #categories .status {
margin-left: 5px; margin-left: 5px;
@ -89,108 +102,138 @@ body {
min-width: 350px; } min-width: 350px; }
.category { .category {
margin-top: 3em; } margin-top: 3em;
}
.item { .item {
margin-top: 20px; } margin-top: 20px;
}
.item-info { .item-info {
padding: 10px 15px; } padding: 10px 15px;
}
.item-info .controls { .item-info .controls {
float: right; } float: right;
}
.item-info .controls img { .item-info .controls img {
opacity: 0.4; opacity: 0.4;
height: 23px; } height: 23px;
}
.category-info .controls { .category-info .controls {
margin-right: 0.5em; margin-right: 0.5em;
vertical-align: -1px; } vertical-align: -1px;
}
.category-info .controls img { .category-info .controls img {
opacity: 0.3; opacity: 0.3;
height: 20px; } height: 20px;
}
.category-info .group { .category-info .group {
font-size: 60%; font-size: 60%;
font-weight: normal; font-weight: normal;
color: gray; } color: gray;
}
.trait-controls img { .trait-controls img {
opacity: 0.5; opacity: 0.5;
width: 12px; } width: 12px;
}
/* increase the clickable area */ /* increase the clickable area */
.trait-controls a { .trait-controls a {
display: inline-block; display: inline-block;
padding: 5px; } padding: 5px;
}
.trait-controls { .trait-controls {
margin-left: -7px; } margin-left: -7px;
}
.item-traits, .item-notes, .item-description, .item-ecosystem { .item-traits,
padding: 10px 15px 20px 15px; } .item-notes,
.item-description,
.item-ecosystem {
padding: 10px 15px 20px 15px;
}
.traits-groups-container { .traits-groups-container {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin: 0px -15px; } margin: 0px -15px;
}
.traits-group { .traits-group {
flex: 1; flex: 1;
min-width: 300px; min-width: 300px;
padding: 0px 15px; } padding: 0px 15px;
}
.traits-group > ul { .traits-group > ul {
padding-left: 1em; } padding-left: 1em;
}
.traits-group > ul li { .traits-group > ul li {
margin: 10px 0px; } margin: 10px 0px;
}
.text-button { .text-button {
font-size: 10pt; font-size: 10pt;
font-weight: normal; } font-weight: normal;
}
.text-button::before {content: "[";} .text-button::before {content: "[";}
.text-button::after {content: "]";} .text-button::after {content: "]";}
textarea { textarea {
font-size: 100%; } font-size: 100%;
}
input { input {
font-size: 100%; } font-size: 100%;
}
.text-button > a:visited {color: #008ACE;} .text-button > a:visited {color: #008ACE;}
h1 > a:visited {color: #008ACE;} /* for header in category pages */ h1 > a:visited {color: #008ACE;} /* for header in category pages */
a.anchor { a.anchor {
margin-right: 0.5em; margin-right: 0.5em;
color: gray; } color: gray;
}
form { form {
margin: 0; } margin: 0;
}
textarea { textarea {
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 5px 7px; } padding: 5px 7px;
}
textarea:focus { textarea:focus {
outline: 0px none; outline: 0px none;
border: 1px solid #07C; } border: 1px solid #07C;
}
textarea.big { textarea.big {
padding: 10px; } padding: 10px;
}
.fullwidth { .fullwidth {
width: 100%; } width: 100%;
}
textarea.fullwidth { textarea.fullwidth {
resize: vertical; } resize: vertical;
}
.notes-toc { .notes-toc {
background-color: rgba(10, 10, 10, 0.1); background-color: rgba(10, 10, 10, 0.1);
padding: 1px 0; } padding: 1px 0;
}
.diff-popup { .diff-popup {
background: white; background: white;