1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-23 04:07:14 +03:00
guide/static/css.css

292 lines
4.1 KiB
CSS
Raw Normal View History

/* Making textboxes and other text inputs behave normally (i.e. now an input
with width:100%;padding:10px is going to take 100% of width, not
100%+20px) */
*, *:before, *:after {
2016-06-19 22:41:02 +03:00
box-sizing: border-box;
}
/* Making the footer stick to the bottom of the screen */
body {
display: flex;
min-height: 100vh;
2016-06-19 22:41:02 +03:00
flex-direction: column;
}
#main {
2016-06-19 22:41:02 +03:00
flex: 1;
}
2016-07-10 23:34:13 +03:00
#main > h1 {
margin-bottom: 0px;
}
.subtitle {
font-weight: bold;
color: #e03;
margin-bottom: 2em;
}
2016-04-24 23:53:00 +03:00
/* headers look bad when the width is small, so */
h1 {
2016-06-19 22:41:02 +03:00
line-height: 100%;
}
2016-04-24 23:53:00 +03:00
/* Other CSS */
#footer {
2016-05-03 03:27:30 +03:00
display: flex;
flex-flow: row wrap;
justify-content: space-around;
padding: 1.5em 0 0em 0;
margin: 0 -1em;
margin-top: 2em;
2016-06-19 22:41:02 +03:00
border-top: 1px solid black;
}
2016-05-03 03:27:30 +03:00
.footer-item {
margin: 0 1em;
min-height: 40px;
2016-06-19 22:41:02 +03:00
text-align: center;
}
2016-05-03 03:27:30 +03:00
.unemployed {
font-size: 50%;
2016-06-19 22:41:02 +03:00
margin-top: -0.3em;
}
2016-05-03 03:27:30 +03:00
2016-02-25 17:26:30 +03:00
body {
2016-04-23 19:30:43 +03:00
padding: 0px 15px;
2016-03-19 03:20:43 +03:00
padding-top: 2em;
2016-02-25 17:26:30 +03:00
margin: auto;
max-width: 800px;
2016-03-05 01:46:47 +03:00
font-family: sans-serif;
2016-06-19 22:41:02 +03:00
line-height: 120%;
}
2016-02-25 17:26:30 +03:00
#noscript-message {
padding: 1px 1em;
2016-06-19 22:41:02 +03:00
background-color: #FFEBEE;
}
2016-02-25 17:26:30 +03:00
#search {
font-size: 200%;
border: 1px solid #d0d0d0;
padding: 3px 10px;
2016-06-19 22:41:02 +03:00
width: 100%;
}
2016-02-25 17:26:30 +03:00
2016-04-21 18:19:38 +03:00
#categories {
2016-05-01 23:17:55 +03:00
display: flex;
flex-flow: row wrap;
justify-content: space-between;
2016-06-19 22:41:02 +03:00
margin-top: 1em;
}
2016-04-21 18:19:38 +03:00
2016-05-01 23:17:55 +03:00
#categories a {
2016-04-21 18:19:38 +03:00
font-weight: bold;
2016-05-03 03:42:30 +03:00
line-height: 140%;
2016-05-05 16:50:10 +03:00
font-size: 110%;
2016-06-19 22:41:02 +03:00
padding: 2px 1px;
}
2016-05-05 16:50:10 +03:00
#categories a.status-mostly-done {
2016-06-19 22:41:02 +03:00
background-color: #fdd;
}
#categories a.status-wip {
2016-06-19 22:41:02 +03:00
background-color: #faa;
}
2016-05-05 16:50:10 +03:00
#categories a.status-stub {
2016-06-19 22:41:02 +03:00
background-color: #f78;
}
#categories .status {
margin-left: 5px;
color: gray;
font-weight: bold;
font-size: 70%; }
2016-05-01 23:17:55 +03:00
.category-group {
min-width: 350px; }
2016-04-21 18:19:38 +03:00
2016-02-25 17:26:30 +03:00
.category {
2016-06-19 22:41:02 +03:00
margin-top: 3em;
}
2016-02-25 17:26:30 +03:00
2016-02-14 14:03:39 +03:00
.item {
2016-06-19 22:41:02 +03:00
margin-top: 20px;
}
2016-02-26 20:45:28 +03:00
.item-info {
2016-06-19 22:41:02 +03:00
padding: 10px 15px;
}
2016-02-26 20:45:28 +03:00
2016-03-11 01:44:07 +03:00
.item-info .controls {
2016-06-19 22:41:02 +03:00
float: right;
}
2016-03-11 01:44:07 +03:00
.item-info .controls img {
opacity: 0.4;
2016-06-19 22:41:02 +03:00
height: 23px;
}
2016-03-11 01:44:07 +03:00
2016-05-05 16:50:10 +03:00
.category-info .controls {
2016-03-22 20:19:05 +03:00
margin-right: 0.5em;
2016-06-19 22:41:02 +03:00
vertical-align: -1px;
}
2016-03-22 20:19:05 +03:00
2016-05-05 16:50:10 +03:00
.category-info .controls img {
2016-03-22 20:19:05 +03:00
opacity: 0.3;
2016-06-19 22:41:02 +03:00
height: 20px;
}
2016-03-22 20:19:05 +03:00
2016-05-05 16:50:10 +03:00
.category-info .group {
2016-05-01 23:17:55 +03:00
font-size: 60%;
font-weight: normal;
2016-06-19 22:41:02 +03:00
color: gray;
}
2016-05-01 23:17:55 +03:00
.trait-controls img {
opacity: 0.5;
2016-06-19 22:41:02 +03:00
width: 12px;
}
/* increase the clickable area */
.trait-controls a {
display: inline-block;
2016-06-19 22:41:02 +03:00
padding: 5px;
}
.trait-controls {
2016-06-19 22:41:02 +03:00
margin-left: -7px;
}
2016-06-19 22:41:02 +03:00
.item-traits,
.item-notes,
.item-description,
.item-ecosystem {
padding: 10px 15px 20px 15px;
}
2016-02-14 14:19:32 +03:00
2016-02-26 01:31:24 +03:00
.traits-groups-container {
display: flex;
flex-wrap: wrap;
2016-06-19 22:41:02 +03:00
margin: 0px -15px;
}
2016-02-14 14:19:32 +03:00
2016-02-20 16:12:45 +03:00
.traits-group {
flex: 1;
min-width: 300px;
2016-06-19 22:41:02 +03:00
padding: 0px 15px;
}
2016-02-26 01:31:24 +03:00
.traits-group > ul {
2016-06-19 22:41:02 +03:00
padding-left: 1em;
}
2016-02-20 00:09:49 +03:00
2016-02-25 21:15:32 +03:00
.traits-group > ul li {
2016-06-19 22:41:02 +03:00
margin: 10px 0px;
}
2016-02-25 21:15:32 +03:00
2016-02-25 17:26:30 +03:00
.text-button {
2016-02-25 18:09:33 +03:00
font-size: 10pt;
2016-06-19 22:41:02 +03:00
font-weight: normal;
}
2016-02-20 00:09:49 +03:00
2016-02-25 17:26:30 +03:00
.text-button::before {content: "[";}
.text-button::after {content: "]";}
2016-02-21 13:07:35 +03:00
textarea {
2016-06-19 22:41:02 +03:00
font-size: 100%;
}
2016-02-25 21:15:32 +03:00
input {
2016-06-19 22:41:02 +03:00
font-size: 100%;
}
2016-02-25 21:15:32 +03:00
.text-button > a:visited {color: #008ACE;}
h1 > a:visited {color: #008ACE;} /* for header in category pages */
2016-02-21 13:07:35 +03:00
a.anchor {
margin-right: 0.5em;
2016-06-19 22:41:02 +03:00
color: gray;
}
2016-02-26 13:48:27 +03:00
2016-02-26 20:45:28 +03:00
form {
2016-06-19 22:41:02 +03:00
margin: 0;
}
2016-03-04 19:07:26 +03:00
2016-03-11 17:08:04 +03:00
textarea {
border: 1px solid #ccc;
2016-06-19 22:41:02 +03:00
padding: 5px 7px;
}
2016-03-11 17:08:04 +03:00
textarea:focus {
outline: 0px none;
2016-06-19 22:41:02 +03:00
border: 1px solid #07C;
}
2016-03-11 17:08:04 +03:00
textarea.big {
2016-06-19 22:41:02 +03:00
padding: 10px;
}
2016-03-11 17:08:04 +03:00
2016-03-04 19:07:26 +03:00
.fullwidth {
2016-06-19 22:41:02 +03:00
width: 100%;
}
2016-03-04 19:07:26 +03:00
textarea.fullwidth {
2016-06-19 22:41:02 +03:00
resize: vertical;
}
2016-04-16 02:02:43 +03:00
.notes-toc {
background-color: rgba(10, 10, 10, 0.1);
2016-06-19 22:41:02 +03:00
padding: 1px 0;
}
2016-06-19 00:52:19 +03:00
.diff-popup {
background: white;
padding: 20px 30px;
text-align: left;
margin: 40px auto;
position: relative;
}
.diff-choices {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
margin: 0px -10px;
}
.diff-choices > * {
flex: 1;
margin-top: 10px;
margin: 7px 5px;
min-width: 400px;
margin-top: 10px;
}
.diff-choices > * > .text {
2016-06-19 19:20:28 +03:00
white-space: pre-wrap;
font-family: monospace;
2016-06-19 00:52:19 +03:00
border: 1px solid gray;
padding: 5px 10px;
margin: 5px 0px;
font-size: 80%;
word-wrap: break-word;
}
.diff-choices > .var-a > .text {
background-color: #fdd;
}
.diff-choices > .var-b > .text {
background-color: #cfc;
}
.diff-choices > .var-merged > textarea {
margin: 5px 0px;
width: 100%;
}