@import (reference) "./colortheme-all.less"; @import (reference) "./font.less"; .infopages_link () { text-decoration: none; color: #0275D8; cursor: pointer; display: inline-flex; &:hover { transform: scale(1.05); } } .cp-shadow() { box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.34); } .infopages_main () { --LessLoader_require: LessLoader_currentFile(); } body { .font_main(); @infopages_infobar-height: 64px; @infopages_padding: 32px; // Basic setup for info pages, this should be used at the global level background-color: @colortheme_info-background; color: @cryptpad_text_col; a { color: @colortheme_logo-2; &:visited { color: darken(@colortheme_logo-2, 5%); } } a:hover { opacity: 1; } border: 0; padding: 0; margin: 0; font-size: 16px; font-family: @colortheme_font; .cp-container { font-size: 16px; padding-top: @infopages_padding; padding-bottom: @infopages_padding; min-height: 75vh; max-width: 950px; h1 { font-size: 3em; margin-bottom: 0.5em; } h2 { font-size: 1.8em; margin-top: 20px; margin-bottom: 0.5em; } h3 { font-size: 1.5em; margin-top: 1em; margin-bottom: 0.5em; } img { &.left { float: left; } max-width: 100%; margin-top: 20px; } .cp-page-title { h1 { font-family: "IBM Plex Mono"; color: @colortheme_logo-2; margin: 50px auto; } } .row.cp-page-section { margin: 50px 0px; } img.cp-shadow { .cp-shadow(); } button { outline: none; background-color: @colortheme_logo-2; color: @colortheme_base; border: none; padding: 10px 20px; border-radius: 0px; cursor: pointer; &:hover, &:focus { background-color: darken(@colortheme_logo-2, 5%); } } button.cp-secondary { background-color: white; color: @colortheme_logo-2; border: 1px solid @colortheme_logo-2; } .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 { @footer-color: #d9d9d9; // XXX move this background-color: @footer-color; padding-top: 20px; .container { margin-bottom: 20px; a { color: @colortheme_logo-2; &:visited { color: @colortheme_logo-2; }; } } .cp-logo-foot { display: flex; flex-flow: column; width: 100%; align-items: center; img { max-width: 60px; display: block; } .logo-font { display: block; font-family: "IBM Plex Mono"; font-size: 1.5rem; color: @colortheme_logo-2; margin-bottom: 10px; } } .cp-version-footer { background-color: @footer-color; display: flex; flex-flow: column; align-items: center; padding: 0.5em; border-top: 1px solid #fff; select { min-width: 0; margin-bottom: 10px; } } } // Apply this to the top bar div .cp-topbar { background: #fff; z-index: 10000; //Z infopage toolbar 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; 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; .navbar-nav { display: flex; align-items: center; } a { font-weight: 500; padding: 0.6em; .infopages_link() } .cp-logo { margin-right: 0.5em; } } // navigation top bar .navbar { width: 100%; color: @colortheme_logo-2; .navbar-brand { display: block; height: 50px; width: 250px; font-family: "IBM Plex Mono"; font-size: 1.8em; img { max-width: 40px; margin-right: 10px; } @media (max-width: 326px) { width: 180px; } margin-right: 0; } a { border: 2px solid transparent; white-space: nowrap; &:visited { color: @colortheme_logo-2; } } .nav-link { padding: 0.5em 0.7em; &:hover { color: @cryptpad_text_col; } } .cp-register-btn { border: 2px solid @colortheme_logo-2; display: inline-block; } button:focus { outline: none; } .navbar-toggler { margin-top: 10px; color: @colortheme_logo-2; } } @media (max-width: 1000px) { #menuCollapse { text-align: right; /* @media (min-width: 576px) { top: 100%; background: rgba(255,255,255,0.8); position: absolute; right: 0px; padding: 0 20px; z-index: 1; } */ } .navbar-nav a { text-align: right !important; } .cp-register-btn { margin-right: 13px; text-align: center; } } }