Skip to content

Instantly share code, notes, and snippets.

@cmather
Created May 28, 2015 01:28
Show Gist options
  • Save cmather/0dab32d4309c1fdadb1f to your computer and use it in GitHub Desktop.
Save cmather/0dab32d4309c1fdadb1f to your computer and use it in GitHub Desktop.
Frontend Masters CSS
/* CSS declarations go here */
body {
font-family: Helvetica Neue;
font-size: 14px;
margin: 0;
padding: 0;
height: 100vh;
width: 100%;
}
.btn {
background: #4AB969;
color: #fff;
text-transform: uppercase;
border: none;
padding: 10px 20px;
letter-spacing: 0.01em;
font-weight: 700;
text-align: center;
min-width: 100px;
}
.btn-soft {
background: #fff;
border: 1px solid #ccc;
color: #000;
}
.btn:hover {
cursor: pointer;
background: #40a55c;
}
.btn-soft:hover {
background: #fff;
box-shadow: 0 2px 0px #ddd;
}
.btn-info {
background: #09AEF2
}
.btn-info:hover {
background: #0899d4;
}
#login-buttons .login-button {
background: #4AB969;
color: #fff;
border: none !important;
text-transform: uppercase;
padding: 6px 20px !important;
letter-spacing: 0.01em !important;
font-weight: 700 !important;
text-align: center !important;
min-width: 100px !important;
}
#login-buttons .login-button:hover {
cursor: pointer;
background: #40a55c;
}
input {
outline: none;
}
input[type=text], input[type=email] {
padding: 12px;
border: 1px solid #ccc;
}
.container {
display: flex;
flex-direction: row;
height: 100vh;
overflow: hidden;
}
.nav {
width: 30%;
max-width: 350px;
min-width: 200px;
background: #3F3F3F;
color: #fff;
}
.main {
flex: 1;
display: flex;
flex-direction: column;
height: 100vh;
}
.main-header {
padding: 5px;
}
.main-list {
flex: 1;
overflow-y: scroll;
padding: 10px;
}
.main-login {
padding: 20px;
width: 50%;
margin: 0 auto;
text-align: center;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.main-login-inner {
}
.main-footer {
padding: 20px;
border-top: 1px solid #ccc;
}
.nav header {
background: #333;
padding: 10px;
}
.nav header h1 {
font-size: 2em;
margin: 0;
padding: 5px 0px;
color: #f2f2f2;
}
.nav header .user {
color: #7F7F7F;
padding: 10px 0px;
}
.nav .rooms {
padding: 10px;
}
.nav .rooms .active {
background: #8C8C8C;
border-radius: 4px;
}
.nav .rooms h3 {
text-transform: uppercase;
color: #f2f2f2;
margin: 20px 0px 20px 0px;
font-size: 11px;
}
.nav .rooms .add-room {
float: right;
font-size: 14px;
cursor: pointer;
}
.nav .rooms .add-room:hover {
color: #fff;
}
.nav .rooms ul {
list-style: none;
margin: 0;
padding: 0;
}
.nav .rooms ul li {
padding: 10px 4px;
cursor: pointer;
}
.nav .invite h3 {
text-transform: uppercase;
color: #f2f2f2;
margin: 20px 0px 20px 0px;
font-size: 11px;
}
.nav .invite form {
display: flex;
flex-direction: row;
justify-content: stretch;
}
.nav .invite {
padding: 10px;
}
.nav .invite input[type=email] {
border: none;
width: 100%;
}
.nav .invite input[type=submit] {
min-width: none;
}
.nav .invite .invite-confirm {
color: #4AB969;
padding: 10px 0px;
}
.comment-list {
list-style: none;
padding: 0;
margin: 0;
}
.comment-item {
padding: 5px;
}
.comment-add {
display: flex;
flex-direction: row;
}
.comment-add-text {
flex: 1;
margin-right: 5px;
width: 100%;
}
.main-header h1 {
margin: 4px 0px;
padding: 0px 5px;
font-size: 1.8em;
color: #bbb;
}
.comment-item {
padding: 12px 5px;
}
.comment-item img {
border-radius: 4px;
width: 36px;
float: left;
}
.comment-item .header {
margin-left: 36px;
padding: 0px 10px;
font-size: 12px;
}
.comment-item .header .login {
font-weight: 700;
margin-right: 10px;
}
.comment-item .header .timestamp {
color: #777;
}
.comment-item .comment {
margin-left: 36px;
padding: 4px 10px;
line-height: 1.5em;
}
.room-add-dialog {
z-index: 1000;
background: #fff;
position: absolute;
top: 20%;
left: 25%;
width: 50%;
margin: 0 auto;
box-shadow: 2px 2px 10px #000;
border-radius: 6px;
}
.room-add-dialog form {
display: flex;
flex-direction: column;
padding: 30px 10px;
}
.room-add-dialog header {
background: #f2f2f2;
padding: 10px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.room-add-dialog header h1 {
margin: 0;
padding: 0;
}
.room-add-dialog .fields,
.room-add-dialog footer {
padding: 10px;
}
.room-add-dialog .fields {
flex: 1;
}
.room-add-dialog footer {
display: flex;
flex-direction: row;
justify-content: flex-end;
}
.room-add-dialog footer .btn {
margin: 0 5px;
}
.room-add-dialog label {
}
.room-add-dialog input[type=text] {
width: 90%;
}
.room-add-dialog footer input[type=submit] {
float: right;
}
.mask {
position: absolute;
z-index: 500;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: #000;
opacity: .5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment