.box { padding: 4.5em 0; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; } /* Header */ .codrops-header { padding: 3em 190px 4em; letter-spacing: -1px; } .codrops-header h1 { font-weight: 200; font-size: 4em; line-height: 1; margin-bottom: 0; } .codrops-header h1 span { display: block; font-size: 40%; letter-spacing: 0; padding: 0.5em 0 1em 0; color: #a8b3b8; } /* Top Navigation Style */ .codrops-links { position: relative; display: inline-block; white-space: nowrap; font-size: 1.25em; text-align: center; } .codrops-links::after { position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: #bfcacf; content: ""; -webkit-transform: rotate3d(0, 0, 1, 22.5deg); transform: rotate3d(0, 0, 1, 22.5deg); } .codrops-icon { display: inline-block; margin: 0.5em; padding: 0em 0; width: 1.5em; text-decoration: none; } .codrops-icon:before { margin: 0 5px; text-transform: none; font-weight: normal; font-style: normal; font-variant: normal; font-family: "codropsicons"; line-height: 1; speak: none; -webkit-font-smoothing: antialiased; } .codrops-icon span { display: none; } .codrops-icon--drop:before { content: "\e001"; } .codrops-icon--prev:before { content: "\e004"; } /* Related demos */ .content--related { text-align: center; font-weight: 600; } .media-item { display: inline-block; padding: 1em; margin: 1em 0 0 0; vertical-align: top; -webkit-transition: color 0.3s; transition: color 0.3s; } .media-item__img { opacity: 0.8; max-width: 100%; -webkit-transition: opacity 0.3s; transition: opacity 0.3s; } .media-item:hover .media-item__img, .media-item:focus .media-item__img { opacity: 1; } .media-item__title { font-size: 0.85em; margin: 0; padding: 0.5em; } @media screen and (max-width: 50em) { .codrops-header { padding: 3em 10% 4em; } } @media screen and (max-width: 40em) { .codrops-header h1 { font-size: 2.8em; } } /* Box colors */ .bg-1 { background: #eceff1; color: #37474f; } .bg-2 { background: #7986cb; color: #eceff1; } .bg-3 { background: #37474f; color: #fff; } /* Common button styles */ .buttonku { float: left; min-width: 50px; max-width: 150px; display: block; margin: 0em 2em 1em 0em; padding: 1em 2em; border: none; background: none; color: inherit; vertical-align: middle; position: relative; z-index: 1; -webkit-backface-visibility: hidden; -moz-osx-font-smoothing: grayscale; } .buttonku:focus { outline: none; } .buttonku > span { vertical-align: middle; } /* Text color adjustments (we could stick to the "inherit" but that does not work well in Safari) */ .bg-1 .buttonku { color: #37474f; border-color: #37474f; } .bg-2 .buttonku { color: #eceff1; border-color: #eceff1; } .bg-3 .buttonku { color: #fff; border-color: #fff; } /* Sizes */ .buttonku--size-s { font-size: 10px; } .buttonku--size-m { font-size: 12px; } .buttonku--size-l { font-size: 18px; } /* Typography and Roundedness */ .buttonku--text-upper { letter-spacing: 2px; text-transform: uppercase; } .buttonku--text-thin { font-weight: 300; } .buttonku--text-medium { font-weight: 500; } .buttonku--text-thick { font-weight: 600; } .buttonku--round-s { border-radius: 5px; } .buttonku--round-m { border-radius: 15px; } .buttonku--round-l { border-radius: 40px; } /* Borders */ .buttonku--border-thin { border: 1px solid; } .buttonku--border-medium { border: 2px solid; } .buttonku--border-thick { border: 3px solid; } /* Moema */ .buttonku--moema { padding: 1.5em 1.5em 1.5em; border-radius: 5%; background: #7986cb; color: #fff; -webkit-transition: background-color 0.3s, color 0.3s; transition: background-color 0.3s, color 0.3s; } .buttonku--moemaedt { padding: 1em 2em 1em; border-radius: 5%; background: #7986cb; color: #fff; -webkit-transition: background-color 0.3s, color 0.3s; transition: background-color 0.3s, color 0.3s; } .buttonku--moemadel { padding: 1.5em 4em 1.5em; border-radius: 5%; background: #7986cb; color: #fff; -webkit-transition: background-color 0.3s, color 0.3s; transition: background-color 0.3s, color 0.3s; } .buttonku--moema.buttonku--inverted { background: #eceff1; color: #37474f; } .buttonku--moemaedt.buttonku--inverted { background: #eceff1; color: #37474f; } .buttonku--moemadel.buttonku--inverted { background: #eceff1; color: #37474f; } .buttonku--moema::before { content: ""; position: absolute; top: -8px; left: -8px; bottom: -8px; right: -8px; background: inherit; border-radius: 5%; z-index: -1; opacity: 0.4; -webkit-transform: scale3d(0.8, 0.5, 1); transform: scale3d(0.8, 0.5, 1); } .buttonku--moemaedt::before { content: ""; position: absolute; top: -8px; left: -8px; bottom: -8px; right: -8px; background: inherit; border-radius: 5%; z-index: -1; opacity: 0.4; -webkit-transform: scale3d(0.8, 0.5, 1); transform: scale3d(0.8, 0.5, 1); } .buttonku--moemadel::before { content: ""; position: absolute; top: -8px; left: -8px; bottom: -8px; right: -8px; background: inherit; border-radius: 5%; z-index: -1; opacity: 0.4; -webkit-transform: scale3d(0.8, 0.5, 1); transform: scale3d(0.8, 0.5, 1); } .buttonku--moema:hover { -webkit-transition: background-color 0.1s 0.3s, color 0.1s 0.3s; transition: background-color 0.1s 0.3s, color 0.1s 0.3s; color: #eceff1; background-color: #3f51b5; -webkit-animation: anim-moema-1 0.3s forwards; animation: anim-moema-1 0.3s forwards; } .buttonku--moemaedt:hover { -webkit-transition: background-color 0.1s 0.3s, color 0.1s 0.3s; transition: background-color 0.1s 0.3s, color 0.1s 0.3s; color: #eceff1; background-color: #5cb85c; -webkit-animation: anim-moema-1 0.3s forwards; animation: anim-moema-1 0.3s forwards; } .buttonku--moemadel:hover { -webkit-transition: background-color 0.1s 0.3s, color 0.1s 0.3s; transition: background-color 0.1s 0.3s, color 0.1s 0.3s; color: #eceff1; background-color: #d9534f; -webkit-animation: anim-moema-1 0.3s forwards; animation: anim-moema-1 0.3s forwards; } .buttonku--moema.buttonku--inverted:hover { color: #eceff1; background-color: #7986cb; } .buttonku--moema:hover::before { -webkit-animation: anim-moema-2 0.3s 0.3s forwards; animation: anim-moema-2 0.3s 0.3s forwards; } @-webkit-keyframes anim-moema-1 { 60% { -webkit-transform: scale3d(0.8, 0.8, 1); transform: scale3d(0.8, 0.8, 1); } 85% { -webkit-transform: scale3d(1.1, 1.1, 1); transform: scale3d(1.1, 1.1, 1); } 100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes anim-moema-1 { 60% { -webkit-transform: scale3d(0.8, 0.8, 1); transform: scale3d(0.8, 0.8, 1); } 85% { -webkit-transform: scale3d(1.1, 1.1, 1); transform: scale3d(1.1, 1.1, 1); } 100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @-webkit-keyframes anim-moema-2 { to { opacity: 0; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes anim-moema-2 { to { opacity: 0; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @media screen and (max-width: 480px) { .buttonku { min-width: 50px; max-width: 100px; margin: 0; padding: 0; font-size: 1.5em; margin-bottom: 5px; } .buttonku--moema { padding: 1.5em 1.5em 1.5em; border-radius: 5%; } .buttonku--text-thick { font-weight: 100; } .buttonku--text-upper { letter-spacing: 2px; text-transform: uppercase; } .buttonku--size-m { font-size: 12px; } .buttonku--size-s { font-size: 10px; } }