1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-27 10:10:50 +03:00
guide/templates/css.widget

373 lines
5.4 KiB
Plaintext
Raw Normal View History

CSS
============================================================
/* 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;
}
#header > h1 {
font-size: 250%;
font-weight: 600;
margin-bottom: 0px;
}
#header > h1 span {
font-weight: 200;
}
#header > h1 a {
color: inherit;
text-decoration: none;
}
#main {
2016-06-19 22:41:02 +03:00
flex: 1;
}
/* TODO: Remove after instances are moved to #header */
2016-07-10 23:34:13 +03:00
#main > h1 {
font-size: 250%;
font-weight: 600;
2016-07-10 23:34:13 +03:00
margin-bottom: 0px;
}
#main > h1 span {
font-weight: 200;
}
#main > h1 a {
color: inherit;
text-decoration: none;
}
2016-07-10 23:34:13 +03:00
.subtitle {
font-weight: 500;
2016-07-10 23:34:13 +03:00
color: #e03;
margin-top: 0.4em;
2016-07-10 23:34:13 +03:00
margin-bottom: 2em;
}
.subtitle a {
color: inherit;
border-bottom: 1.5px solid;
text-decoration: none;
}
.subtitle a:hover {
color: #f35;
}
2016-07-10 23:34:13 +03:00
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 0.75em;
2016-05-03 03:27:30 +03:00
min-height: 40px;
2016-06-19 22:41:02 +03:00
text-align: center;
}
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-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;
margin-top: 3em;
2016-06-19 22:41:02 +03:00
}
2016-04-21 18:19:38 +03:00
.category-group {
width: 340px;
padding: 0 30px;
padding-bottom: 50px;
2016-06-19 22:41:02 +03:00
}
.category-group h2 {
font-size: 190%;
font-weight: 600;
padding: 0px 10px;
margin: 0 -36px;
margin-top: 0px;
margin-bottom: 30px;
2016-06-19 22:41:02 +03:00
}
/* inside .category-group we have .categories-finished|wip|stub */
.categories-finished {
margin-top: -5px;
margin-bottom: 17px;
2016-06-19 22:41:02 +03:00
}
.categories-wip, .categories-stub {
margin-bottom: 13px;
}
2016-05-01 23:17:55 +03:00
.categories-wip, .categories-wip h3,
.categories-stub, .categories-stub h3 {
font-size: 15px;
font-weight: 600;
}
.categories-wip h3, .categories-stub h3 {
margin: 0px;
}
.categories-wip p, .categories-stub p {
padding-left: 2em;
margin: 1px 0px;
line-height: 18px;
}
.categories-finished .category-link {
font-size: 21px;
font-weight: 600;
line-height: 28px;
display: block;
}
.categories-wip .category-link, .categories-stub .category-link {
white-space: nowrap;
}
2017-04-05 04:59:03 +03:00
/* search results */
#search-results {
margin-top: 3em;
margin-bottom: 1em;
}
.search-result {
padding: 0.9em 1.1em;
margin: 1.5em 1px;
box-shadow: 0 1px 5px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.search-result .category-link {
font-size: 22px;
font-weight: 600;
line-height: 28px;
}
.search-result .category-link.in-item-sr {
font-size: 21px;
color: #999;
}
.search-result .item-link, .search-result .item-link-addition {
font-size: 22px;
}
.search-result .breadcrumb {
color: #999;
font-size: 22px;
margin: 0px 6px;
}
/* category pages */
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
.category-title {
font-weight: 600;
}
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
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
2016-11-26 22:23:01 +03:00
.item-body {
padding-top: 5px;
}
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
.edit-field-instruction {
2016-07-21 22:24:06 +03:00
margin-right: 2em;
font-size: 75%;
vertical-align: 1px;
color: #666;
}
.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%;
}
2016-10-08 11:27:01 +03:00
.markdown-supported {
2016-10-10 01:55:23 +03:00
height: 1em;
2017-04-05 04:59:03 +03:00
}