123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- /*
- * -- BASE STYLES --
- * Most of these are inherited from Base, but I want to change a few.
- */
- body {
- color: #333;
- }
- a {
- text-decoration: none;
- color: #1b98f8;
- }
- pre {
- overflow-x: auto;
- border-radius: 4px;
- }
- /*
- * -- LAYOUT STYLES --
- * This layout consists of three main elements, `#nav` (navigation bar), `#list` (email list), and `#main` (email content). All 3 elements are within `#layout`
- */
- #layout, #nav, #list, #main {
- margin: 0;
- padding: 0;
- }
- /* Make the navigation 100% width on phones */
- #nav {
- width: 100%;
- height: 40px;
- position: relative;
- background: rgb(37, 42, 58);
- text-align: center;
- }
- /* Show the "Menu" button on phones */
- #nav .nav-menu-button {
- display: block;
- top: 0.5em;
- right: 0.5em;
- position: absolute;
- }
- /* When "Menu" is clicked, the navbar should be 80% height */
- #nav.active {
- height: 80%;
- }
- /* Don't show the navigation items... */
- .nav-inner {
- display: none;
- }
- /* ...until the "Menu" button is clicked */
- #nav.active .nav-inner {
- display: block;
- padding: 2em 0;
- }
- /*
- * -- NAV BAR STYLES --
- * Styling the default .pure-menu to look a little more unique.
- */
- #nav .pure-menu {
- background: transparent;
- border: none;
- text-align: left;
- }
- #nav .pure-menu-link:hover,
- #nav .pure-menu-link:focus {
- background: rgb(55, 60, 90);
- }
- #nav .pure-menu-link {
- color: #fff;
- margin-left: 0.5em;
- }
- #nav .pure-menu-heading {
- border-bottom: none;
- font-size:110%;
- color: rgb(75, 113, 151);
- }
- /* Item Styles */
- .item {
- padding: 0.9em 1em;
- border-bottom: 1px solid #ddd;
- border-left: 6px solid transparent;
- cursor: pointer;
- }
- .avatar {
- border-radius: 3px;
- margin-right: 0.5em;
- }
- .name,
- .subject {
- margin: 0;
- }
- .name {
- text-transform: uppercase;
- color: #999;
- }
- .desc {
- font-size: 80%;
- margin: 0.4em 0;
- }
- .item-selected {
- background: #eee;
- border-left: 6px solid #1b98f8;
- }
- /* Content Styles */
- .content-header, .content-body, .content-footer {
- padding: 1em 2em;
- }
- .content-header {
- border-bottom: 1px solid #ddd;
- }
- .content-title {
- margin: 0.5em 0 0;
- }
- .content-subtitle {
- font-size: 1em;
- margin: 0;
- font-weight: normal;
- }
- .content-subtitle span {
- color: #999;
- }
- .content-controls {
- margin-top: 2em;
- text-align: right;
- }
- .content-controls .pure-button-variant {
- margin-bottom: 0.3em;
- color: white;
- /*border-radius: 4px;*/
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
- }
- .pure-button-variant-success {
- background: rgb(28, 184, 65);
- /* this is a green */
- }
- .pure-button-variant-error {
- background: rgb(202, 60, 60);
- /* this is a maroon */
- }
- .pure-button-variant-warning {
- background: rgb(223, 117, 20);
- /* this is an orange */
- }
- .pure-button-variant-secondary {
- background: rgb(66, 184, 221);
- /* this is a light blue */
- }
- .avatar {
- width: 40px;
- height: 40px;
- }
- /*
- * -- TABLET (AND UP) MEDIA QUERIES --
- * On tablets and other medium-sized devices, we want to customize some
- * of the mobile styles.
- */
- @media (min-width: 40em) {
- /* Move the layout over so we can fit the nav + list in on the left */
- #layout {
- padding-left:500px; /* "left col (nav + list)" width */
- position: relative;
- }
- /* These are position:fixed; elements that will be in the left 500px of the screen */
- #nav, #list {
- position: fixed;
- top: 0;
- bottom: 0;
- overflow: auto;
- }
- #nav {
- margin-left:-500px; /* "left col (nav + list)" width */
- width:150px;
- height: 100%;
- }
- /* Show the menu items on the larger screen */
- .nav-inner {
- display: block;
- padding: 2em 0;
- }
- /* Hide the "Menu" button on larger screens */
- #nav .nav-menu-button {
- display: none;
- }
- #list {
- margin-left: -350px;
- width: 100%;
- height: 33%;
- border-bottom: 1px solid #ddd;
- }
- #main {
- position: fixed;
- top: 33%;
- right: 0;
- bottom: 0;
- left: 150px;
- overflow: auto;
- width: auto; /* so that it's not 100% */
- }
- }
- /*
- * -- DESKTOP (AND UP) MEDIA QUERIES --
- * On desktops and other large-sized devices, we want to customize some
- * of the mobile styles.
- */
- @media (min-width: 60em) {
- /* This will take up the entire height, and be a little thinner */
- #list {
- margin-left: -350px;
- width:350px;
- height: 100%;
- border-right: 1px solid #ddd;
- }
- /* This will now take up it's own column, so don't need position: fixed; */
- #main {
- position: static;
- margin: 0;
- padding: 0;
- }
- }
- #main, #content {
- height: 100%;
- width: 100%;
- }
- #post {
- display: flex;
- flex-flow: column;
- height: 100%;
- }
- #components {
- flex: 0 1 auto;
- }
- #editor {
- visibility: hidden;
- }
- .input-large {
- font-size: 28px;
- font-weight: 700;
- }
- .CodeMirror-sizer {
- padding-top: 5px;
- }
- .CodeMirror-gutters {
- border-left: 1px solid #ddd;
- }
- .CodeMirror-scroll {
- overflow-y: auto;
- }
- .mt-15 {
- margin-top: 15px;
- }
- .CodeMirror {
- flex: 1 1 auto;
- }
- div.CodeMirror-scroll { height: auto!important; overflow: visible; font-family: 'Roboto Mono', monospace; }
|