cryptpad/customize.dist/src/less2/include/infopages.less

162 lines
3.4 KiB
Plaintext
Raw Normal View History

@import (once) "./colortheme.less";
@infopages_infobar-height: 64px;
2017-08-01 15:11:03 +00:00
@infopages_padding: 32px;
2017-07-22 14:43:53 +00:00
// Basic setup for info pages, this should be used at the global level
.infopages_main () {
background-color: @colortheme_info-background;
2017-07-22 14:43:53 +00:00
a {
color: @colortheme_link-color;
&:visited { color: @colortheme_link-color-visited; }
2017-07-24 12:10:40 +00:00
//opacity: 0.8;
//transition: opacity 0.2s;
2017-07-22 14:43:53 +00:00
}
a:hover {
opacity: 1;
}
border: 0;
2017-08-02 13:53:04 +00:00
padding: 0;
margin: 0;
2017-07-22 14:43:53 +00:00
2017-08-04 13:13:03 +00:00
font-size: 16px;
font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
.cp-container {
2017-08-04 09:10:30 +00:00
font-size: 16px;
2017-08-01 15:11:03 +00:00
margin-top: @infopages_infobar-height;
padding-top: @infopages_padding;
padding-bottom: @infopages_padding;
min-height: 75vh;
h1 {
font-size: 3em;
margin-bottom: 0.5em;
}
2017-08-02 13:53:04 +00:00
h2 {
font-size: 2em;
margin-top: 1em;
margin-bottom: 0.5em;
}
2017-08-03 13:58:51 +00:00
h3 {
font-size: 1.5em;
margin-top: 1em;
margin-bottom: 0.5em;
}
2017-08-02 13:53:04 +00:00
img {
&.left {
float: left;
}
max-width: 100%;
}
2017-08-01 15:11:03 +00:00
.form-group {
& > * {
margin-top: 0.5em;
}
display: flex;
flex-direction: column;
align-items: center;
.checkbox-container {
width: 100%;
display: flex;
align-items: center;
label {
margin: 0;
}
input {
margin-right: 0.5em;
}
}
}
}
footer {
background-color: white;
.container {
.col {
margin-top: 1em;
}
width: 100%;
text-align: center;
margin-bottom: 1em;
ul.list-unstyled {
margin: 0;
}
}
.cp-version-footer {
background-color: @colortheme_info-background;
color: black;
text-align: center;
padding: 0.5em;
}
}
2017-07-22 14:43:53 +00:00
};
.infopages_link () {
text-decoration: none;
color: #0275D8;
cursor: pointer;
display: inline-flex;
&:hover {
transform: scale(1.05);
}
}
2017-07-22 14:43:53 +00:00
// Apply this to the top bar div
.infopages_topbar () {
.cp-topbar {
background: #fff;
z-index: 9001;
2017-07-22 14:43:53 +00:00
position: fixed;
top: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
width: 100%;
height: @infopages_infobar-height;
2017-07-22 14:43:53 +00:00
padding-left: 0.5em;
padding-right: 0.5em;
vertical-align: middle;
font-size: 1.25em;
line-height: 1.25em;
cursor: default;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
2017-08-02 10:37:56 +00:00
.navbar-nav {
display: flex;
align-items: center;
}
2017-07-22 14:43:53 +00:00
a {
font-weight: 500;
padding: 0.6em;
.infopages_link()
2017-07-22 14:43:53 +00:00
}
2017-08-02 10:37:56 +00:00
.cp-logo {
img {
height: @infopages_infobar-height / 2;
}
margin-right: 0.5em;
}
2017-07-22 14:43:53 +00:00
}
2017-08-01 15:11:03 +00:00
}