Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created February 4, 2019 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbe/8961ce7d78b4de44bbe7f5cc4dfdabc6 to your computer and use it in GitHub Desktop.
Save peterbe/8961ce7d78b4de44bbe7f5cc4dfdabc6 to your computer and use it in GitHub Desktop.
/*!
* # Semantic UI 2.3.1 - Reset
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
/*!
* # Semantic UI 2.3.1 - Site
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Button
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Container
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Divider
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Header
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Input
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Label
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - List
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Loader
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Segment
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Form
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Grid
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Message
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Table
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Item
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Comment
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Dimmer
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Dropdown
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*!
* # Semantic UI 2.3.1 - Search
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*! peterbe.css */
* {
-webkit-box-sizing: inherit;
box-sizing: inherit;
}
html,
input {
line-height: 1.15;
}
html {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
height: 100%;
font-size: 14px;
}
input[type="text"] {
-webkit-appearance: none;
-moz-appearance: none;
}
body,
h1 {
padding: 0;
}
h1 {
font-size: 2em;
margin: calc(2rem - 0.14285714em) 0 1rem;
font-weight: 700;
min-height: 1rem;
font-size: 2rem;
margin: 0.67em 0;
line-height: 1.28571429em;
}
a {
background-color: transparent;
-webkit-text-decoration-skip: objects;
color: #4183c4;
text-decoration: none;
}
img {
border-style: none;
}
input {
font-family: sans-serif;
font-size: 100%;
margin: 0;
overflow: visible;
}
body {
height: 100%;
margin: 0;
overflow-x: hidden;
min-width: 320px;
background: #fff;
line-height: 1.4285em;
color: rgba(0, 0, 0, 0.87);
font-smoothing: antialiased;
color: #333;
background-color: #fff;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1:first-child,
p:first-child {
margin-top: 0;
}
h1:last-child,
p:last-child {
margin-bottom: 0;
}
p {
margin: 0 0 1em;
line-height: 1.4285em;
}
a:hover {
color: #1e70bf;
text-decoration: none;
}
input::-webkit-selection {
background-color: rgba(100, 100, 100, 0.4);
color: rgba(0, 0, 0, 0.87);
}
input::-moz-selection {
background-color: rgba(100, 100, 100, 0.4);
color: rgba(0, 0, 0, 0.87);
}
input::selection {
background-color: rgba(100, 100, 100, 0.4);
color: rgba(0, 0, 0, 0.87);
}
body ::-webkit-scrollbar {
-webkit-appearance: none;
width: 10px;
height: 10px;
}
body ::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
border-radius: 0;
}
body ::-webkit-scrollbar-thumb {
cursor: pointer;
border-radius: 5px;
background: rgba(0, 0, 0, 0.25);
-webkit-transition: color 0.2s ease;
transition: color 0.2s ease;
}
body ::-webkit-scrollbar-thumb:window-inactive {
background: rgba(0, 0, 0, 0.15);
}
body ::-webkit-scrollbar-thumb:hover {
background: rgba(128, 135, 139, 0.8);
}
body .ui.inverted::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
}
body .ui.inverted::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.25);
}
body .ui.inverted::-webkit-scrollbar-thumb:window-inactive {
background: rgba(255, 255, 255, 0.15);
}
body .ui.inverted::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.35);
}
.ui.container {
display: block;
max-width: 100% !important;
}
@media only screen and (max-width: 767px) {
.ui.container {
width: auto !important;
margin-left: 1em !important;
margin-right: 1em !important;
}
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
.ui.container {
width: 723px;
margin-left: auto !important;
margin-right: auto !important;
}
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
.ui.container {
width: 933px;
margin-left: auto !important;
margin-right: auto !important;
}
}
@media only screen and (min-width: 1200px) {
.ui.container {
width: 1127px;
margin-left: auto !important;
margin-right: auto !important;
}
}
.ui[class*="center aligned"].container {
text-align: center;
}
.ui.header {
border: 0;
margin: calc(2rem - 0.14285714em) 0 1rem;
padding: 0;
font-weight: 700;
line-height: 1.28571429em;
text-transform: none;
color: rgba(0, 0, 0, 0.87);
}
.ui.header:first-child {
margin-top: -0.14285714em;
}
.ui.header:last-child {
margin-bottom: 0;
}
h1.ui.header {
font-size: 3rem;
}
.ui.header:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
font-size: 1.28571429em;
}
.ui.input {
position: relative;
font-weight: 400;
font-style: normal;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
color: rgba(0, 0, 0, 0.87);
font-size: 1em;
}
.ui.input input {
margin: 0;
max-width: 100%;
-webkit-box-flex: 1;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
outline: 0;
-webkit-tap-highlight-color: transparent;
text-align: left;
line-height: 1.21428571em;
font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
padding: 0.67857143em 1em;
background: #fff;
border: 1px solid rgba(34, 36, 38, 0.15);
color: rgba(0, 0, 0, 0.87);
border-radius: 0.28571429rem;
-webkit-transition: border-color 0.1s ease, -webkit-box-shadow 0.1s ease;
transition: box-shadow 0.1s ease, border-color 0.1s ease;
transition: box-shadow 0.1s ease, border-color 0.1s ease,
-webkit-box-shadow 0.1s ease;
-webkit-box-shadow: none;
box-shadow: none;
}
.ui.input > input::-webkit-input-placeholder {
color: rgba(191, 191, 191, 0.87);
}
.ui.input > input::-moz-placeholder {
color: rgba(191, 191, 191, 0.87);
}
.ui.input > input:-ms-input-placeholder {
color: rgba(191, 191, 191, 0.87);
}
.ui.input:not(.disabled) input[disabled] {
opacity: 0.45;
pointer-events: none;
}
.ui.input > input:active {
border-color: rgba(0, 0, 0, 0.3);
background: #fafafa;
color: rgba(0, 0, 0, 0.87);
-webkit-box-shadow: none;
box-shadow: none;
}
.ui.input > input:focus {
border-color: #85b7d9;
background: #fff;
color: rgba(0, 0, 0, 0.8);
-webkit-box-shadow: none;
box-shadow: none;
}
.ui.input > input:focus::-webkit-input-placeholder {
color: rgba(115, 115, 115, 0.87);
}
.ui.input > input:focus::-moz-placeholder {
color: rgba(115, 115, 115, 0.87);
}
.ui.input > input:focus:-ms-input-placeholder {
color: rgba(115, 115, 115, 0.87);
}
.ui.list {
list-style-type: none;
margin: 1em 0;
padding: 0;
font-size: 1em;
}
.ui.list:first-child {
margin-top: 0;
padding-top: 0;
}
.ui.list:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
.ui.list > .item {
display: list-item;
table-layout: fixed;
list-style-type: none;
list-style-position: outside;
padding: 0.21428571em 0;
line-height: 1.14285714em;
}
.ui.list > .item:after,
.ui.menu:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.ui.list > .item:first-child {
padding-top: 0;
}
.ui.list > .item:last-child {
padding-bottom: 0;
}
.ui.list > a.item {
cursor: pointer;
color: #4183c4;
}
.ui.inverted.list > a.item:hover,
.ui.list > a.item:hover {
color: #1e70bf;
}
.ui.horizontal.list {
display: inline-block;
font-size: 0;
}
.ui.horizontal.list > .item {
display: inline-block;
margin-left: 1em;
}
.ui.horizontal.list:not(.celled) > .item:first-child {
margin-left: 0 !important;
padding-left: 0 !important;
}
.ui.horizontal.list > .item:first-child,
.ui.horizontal.list > .item:last-child {
padding-top: 0.21428571em;
padding-bottom: 0.21428571em;
}
.ui.list > a.item:hover .icon {
color: rgba(0, 0, 0, 0.87);
}
.ui.inverted.list > a.item {
cursor: pointer;
color: rgba(255, 255, 255, 0.9);
}
.ui.link.list .item,
.ui.link.list a.item {
color: rgba(0, 0, 0, 0.4);
-webkit-transition: 0.1s color ease;
transition: 0.1s color ease;
}
.ui.link.list.list a.item:hover {
color: rgba(0, 0, 0, 0.8);
}
.ui.link.list.list a.item:active {
color: rgba(0, 0, 0, 0.9);
}
.ui.inverted.link.list .item,
.ui.inverted.link.list a.item {
color: rgba(255, 255, 255, 0.5);
}
.ui.inverted.link.list.list a.item:active,
.ui.inverted.link.list.list a.item:hover {
color: #fff;
}
.ui.divided.list > .item {
border-top: 1px solid rgba(34, 36, 38, 0.15);
}
.ui.divided.list > .item:first-child {
border-top: none;
}
.ui.divided.list:not(.horizontal) .list > .item:first-child {
border-top-width: 1px;
}
.ui.divided.horizontal.list {
margin-left: 0;
}
.ui.divided.horizontal.list > .item:not(:first-child) {
padding-left: 0.5em;
}
.ui.divided.horizontal.list > .item:not(:last-child) {
padding-right: 0.5em;
}
.ui.divided.horizontal.list > .item {
border-top: none;
border-left: 1px solid rgba(34, 36, 38, 0.15);
margin: 0;
line-height: 0.6;
}
.ui.horizontal.divided.list > .item:first-child {
border-left: none;
}
.ui.divided.inverted.horizontal.list > .item,
.ui.divided.inverted.list > .item {
border-color: rgba(255, 255, 255, 0.1);
}
.ui.small.list {
font-size: 0.92857143em;
}
.ui.small.horizontal.list > .item {
font-size: 0.92857143rem;
}
.ui.horizontal.list > .item,
.ui.segment {
font-size: 1rem;
}
.ui.segment {
position: relative;
background: #fff;
-webkit-box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
margin: 1rem 0;
padding: 1em;
border-radius: 0.28571429rem;
border: 1px solid rgba(34, 36, 38, 0.15);
}
.ui.segment:first-child {
margin-top: 0;
}
.ui.segment:last-child {
margin-bottom: 0;
}
.ui.vertical.segment {
margin: 0;
padding-left: 0;
padding-right: 0;
background: 0 0;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
border: 0;
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
}
.ui.vertical.segment:last-child {
border-bottom: none;
}
.ui.inverted.segment {
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
background: #1b1c1d;
color: rgba(255, 255, 255, 0.9);
}
@media only screen and (max-width: 767px) {
.ui.segment:not(.vertical) .ui.stackable.page.grid {
margin-left: -1rem !important;
margin-right: -1rem !important;
}
}
.ui.menu {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin: 1rem 0;
font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
background: #fff;
font-weight: 400;
border: 1px solid rgba(34, 36, 38, 0.15);
-webkit-box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
border-radius: 0.28571429rem;
min-height: 2.85714286em;
font-size: 1rem;
}
.ui.menu:first-child {
margin-top: 0;
}
.ui.menu:last-child {
margin-bottom: 0;
}
.ui.menu .menu {
margin: 0;
}
.ui.menu:not(.vertical) .item,
.ui.menu:not(.vertical) > .menu {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.ui.menu:not(.vertical) .item {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.ui.menu .item {
position: relative;
vertical-align: middle;
line-height: 1;
text-decoration: none;
-webkit-tap-highlight-color: transparent;
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background: 0 0;
padding: 0.92857143em 1.14285714em;
text-transform: none;
color: rgba(0, 0, 0, 0.87);
font-weight: 400;
-webkit-transition: background 0.1s ease, color 0.1s ease,
-webkit-box-shadow 0.1s ease;
transition: background 0.1s ease, box-shadow 0.1s ease, color 0.1s ease;
transition: background 0.1s ease, box-shadow 0.1s ease, color 0.1s ease,
-webkit-box-shadow 0.1s ease;
}
.ui.menu .item:before {
position: absolute;
content: "";
top: 0;
right: 0;
height: 100%;
width: 1px;
background: rgba(34, 36, 38, 0.1);
}
.ui.menu .item > a:not(.ui) {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
line-height: 1.3;
}
.ui.menu:not(.vertical) .item > .button {
position: relative;
top: 0;
margin: -0.5em 0;
padding-bottom: 0.78571429em;
padding-top: 0.78571429em;
font-size: 1em;
}
.ui.menu > .container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: inherit;
-ms-flex-align: inherit;
align-items: inherit;
-webkit-box-orient: inherit;
-webkit-box-direction: inherit;
-ms-flex-direction: inherit;
flex-direction: inherit;
}
.ui.menu:not(.vertical) .item > .input {
position: relative;
top: 0;
margin: -0.5em 0;
}
.ui.menu .header.item {
margin: 0;
background: "";
text-transform: normal;
font-weight: 700;
}
.ui.menu .dropdown.item .menu {
min-width: calc(100% - 1px);
border-radius: 0 0 0.28571429rem 0.28571429rem;
background: #fff;
margin: 0;
-webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.ui.menu .ui.dropdown .menu > .item {
margin: 0;
text-align: left;
font-size: 1em !important;
padding: 0.78571429em 1.14285714em !important;
background: 0 0 !important;
color: rgba(0, 0, 0, 0.87) !important;
text-transform: none !important;
font-weight: 400 !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-transition: none !important;
transition: none !important;
}
.ui.menu .ui.dropdown .menu > .item:hover {
background: rgba(0, 0, 0, 0.05) !important;
color: rgba(0, 0, 0, 0.95) !important;
}
.ui.menu .ui.dropdown.item .menu .item:not(.filtered) {
display: block;
}
@media only screen and (max-width: 767px) {
.ui.menu > .ui.container {
width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !important;
}
}
@media only screen and (min-width: 768px) {
.ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless)
> .container
> .item:not(.right):not(.borderless):first-child {
border-left: 1px solid rgba(34, 36, 38, 0.1);
}
}
.ui.menu .dropdown.item:hover,
.ui.menu a.item:hover {
cursor: pointer;
background: rgba(0, 0, 0, 0.03);
color: rgba(0, 0, 0, 0.95);
}
.ui.menu a.item:active {
background: rgba(0, 0, 0, 0.03);
color: rgba(0, 0, 0, 0.95);
}
.ui.menu:not(.vertical) .left.item,
.ui.menu:not(.vertical) .left.menu {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-right: auto !important;
}
.ui.menu:not(.vertical) .right.item,
.ui.menu:not(.vertical) .right.menu {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-left: auto !important;
}
.ui.menu .right.item::before,
.ui.menu .right.menu > .item::before {
right: auto;
left: 0;
}
.ui.borderless.menu .item .menu .item:before,
.ui.borderless.menu .item:before {
background: 0 0 !important;
}
.ui.dropdown,
.ui.dropdown .menu > .item {
position: relative;
cursor: pointer;
text-align: left;
}
.ui.dropdown {
outline: 0;
-webkit-transition: width 0.1s ease, -webkit-box-shadow 0.1s ease;
transition: box-shadow 0.1s ease, width 0.1s ease;
transition: box-shadow 0.1s ease, width 0.1s ease,
-webkit-box-shadow 0.1s ease;
-webkit-tap-highlight-color: transparent;
display: inline-block;
}
.ui.dropdown .menu {
cursor: auto;
position: absolute;
display: none;
outline: 0;
top: 100%;
min-width: -webkit-max-content;
min-width: -moz-max-content;
min-width: max-content;
margin: 0;
padding: 0;
background: #fff;
font-size: 1em;
text-shadow: none;
text-align: left;
-webkit-box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);
box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);
border: 1px solid rgba(34, 36, 38, 0.15);
border-radius: 0.28571429rem;
-webkit-transition: opacity 0.1s ease;
transition: opacity 0.1s ease;
z-index: 11;
will-change: transform, opacity;
}
.ui.dropdown .menu > * {
white-space: nowrap;
}
.ui.dropdown .menu > .item {
display: block;
border: 0;
height: auto;
border-top: none;
line-height: 1em;
color: rgba(0, 0, 0, 0.87);
padding: 0.78571429rem 1.14285714rem !important;
font-size: 1rem;
text-transform: none;
font-weight: 400;
-webkit-box-shadow: none;
box-shadow: none;
-webkit-touch-callout: none;
}
.ui.dropdown .menu > .item:first-child {
border-top-width: 0;
}
.ui.menu .ui.dropdown .menu > .item:before {
display: none;
}
.ui.menu .right.dropdown.item .menu {
left: auto;
right: 0;
}
.ui.dropdown .menu > .item:hover {
background: rgba(0, 0, 0, 0.05);
color: rgba(0, 0, 0, 0.95);
z-index: 13;
}
.ui.dropdown:not(.button) > .default.text {
color: rgba(191, 191, 191, 0.87);
}
.ui.dropdown:not(.button) > input:focus ~ .default.text {
color: rgba(115, 115, 115, 0.87);
}
.ui.dropdown .menu {
left: 0;
}
.main.container {
margin-top: 2em;
}
.main.menu {
margin-top: 4em;
border-radius: 0;
border: 0;
box-shadow: none;
transition: box-shadow 0.5s ease, padding 0.5s ease;
}
.main.menu .item img.logo {
margin-right: 1.5em;
}
.main.menu,
body {
font-size: 16px;
}
.main.menu .page-title-repeated {
display: none;
}
.menu i.dropdown {
font-size: 80%;
}
.ui.footer.segment {
margin: 5em 0 0;
padding: 5em 0;
}
.ui.header {
color: #333;
}
@media (max-width: 414px) {
h1.ui.header {
font-size: 2.5rem;
}
}
a.page-title-repeated {
color: #333;
cursor: pointer;
}
@media (min-width: 767px) {
.main.menu .right.dropdown {
display: none !important;
}
.main.menu .right.menu {
display: flex;
}
}
@media (max-width: 768px) {
.main.menu .right.dropdown {
display: flex !important;
}
.main.menu .right.menu {
display: none !important;
}
}
.ui.header,
h1 {
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment