* { box-sizing: border-box; } body { margin: 0; background-color: #f5f5f5; font-family: sans-serif; padding: 16px 0 48px; } h1, h2, h3, h4, h5, h6 { font-family: sans-serif; font-weight: 500; margin: 0; } section { max-width: 900px; margin: auto; padding: 16px; > h4 { padding-bottom: 8px; } } .table-wrapper { background-color: #fff; border: 1px solid #ddd; border-radius: 2px; } .content { background-color: #fff; border: 1px solid #ddd; border-radius: 2px; padding: 16px; } table { border-collapse: collapse; width: 100%; } thead { background-color: #fdf; border-radius: 2px 2px 0 0; tr { border-top: none; } } tr { border-top: 1px solid #ddd; } th, td { padding: 12px 16px; } th { text-align: left; } th.port, td.port { text-align: right; } td.delete { text-align: right; } form { background-color: #fff; border: 1px solid #ddd; border-radius: 2px; .form-body { padding: 16px; } .submit { padding: 16px; border-top: 1px solid #ddd; } label { display: block; padding: 12px 0; } } a { text-decoration: none; font-weight: 500; &, &:focus, &:hover, &:visited { color: #dd08dd; } &:hover { color: #dd08dd; text-decoration: underline; } } .select-wrapper { position: relative; width: 150px; border-radius: 2px; &:before { position: absolute; display: block; content: '▾'; top: 7px; right: 10px; } select { position: relative; width: 100%; -webkit-appearance: none; -moz-appearance: none; appearance: none; background: transparent; border: 1px solid #ddd; border-radius: 2px; padding: 8px 24px 8px 8px; font-weight: 600; &:hover { border: 1px solid #eae; } &:focus { border: 1px solid #eae; } } &:hover { background-color: #fff3fc; } &:focus { background-color: #fff3fc; box-shadow: 0 1px 3px #9d0f9d1f; } } button[type="submit"] { padding: 8px 24px; background: #992d99; color: #fff; border: none; border-radius: 2px; font-size: 14px; &:hover { background: #b034b0; } } input[type="text"], input[type="number"], input[type="password"] { width: 150px; background: #fff; border: 1px solid #ddd; border-radius: 2px; padding: 8px; box-shadow: inset 0 0 3px #9d0f9d1f; &:focus { border: 1px solid #eae; box-shadow: inset 0 0 3px #9d0f9d1f, 0 1px 3px #9d0f9d1f; } } p { margin: 0; } ul { list-style: none; padding: 0; margin: 0; } .interface { padding: 8px 0; border-top: 1px solid #ddd; &:first-child { padding-top: 0; border-top: none; } &:last-child { padding-bottom: 0; } .title { font-weight: 600; } } @media(max-width: 650px) { body { padding: 8px 0 48px; } section { padding: 8px 0; > h1 { padding: 0 16px; } > h4 { padding: 8px 16px; } } .table-wrapper { overflow-x: auto; border-left: none; border-right: none; } .content, .table-wrapper, form { border-radius: 0; border-left: none; border-right: none; } }