From f438a84972c40c5f02907e1e2da9febca0d0bdf6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 10 Jan 2018 16:36:30 +0100 Subject: Initial sync --- css/form.css | 161 +++++++++++++++++++++++++++++++++++++++++ css/main.css | 209 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ css/normalize.css | 1 + 3 files changed, 371 insertions(+) create mode 100644 css/form.css create mode 100644 css/main.css create mode 100644 css/normalize.css (limited to 'css') diff --git a/css/form.css b/css/form.css new file mode 100644 index 0000000..a8beabb --- /dev/null +++ b/css/form.css @@ -0,0 +1,161 @@ +.input { + position: relative; + z-index: 1; + display: inline-block; + margin: 1em; + max-width: 350px; + width: calc(100% - 2em); + vertical-align: top; +} + +.input__field { + position: relative; + display: block; + float: right; + padding: 0.8em; + width: 60%; + border: none; + border-radius: 0; + background: #f0f0f0; + color: #aaa; + font-weight: 400; + font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif; + -webkit-appearance: none; /* for box shadows to show on iOS */ +} + +.input__field:focus { + outline: none; +} + +.input__label { + display: inline-block; + float: right; + padding: 0 1em; + width: 40%; + color: #696969; + font-weight: bold; + font-size: 70.25%; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.input__label-content { + position: relative; + display: block; + padding: 1.6em 0; + width: 100%; +} + +.graphic { + position: absolute; + top: 0; + left: 0; + fill: none; +} + +.icon { + color: #ddd; + font-size: 150%; +} + +/* Individual styles */ +/* Kozakura */ +.input--kozakura { + overflow: hidden; + padding-bottom: 1em; +} + +.input__field--kozakura { + padding: 0.25em 0.5em; + margin-top: 1.25em; + width: 100%; + background: transparent; + color: #2F3238; + font-size: 1.55em; + opacity: 0; +} + +.input__label--kozakura { + width: 100%; + text-align: left; + position: absolute; + top: 1em; + pointer-events: none; + overflow: hidden; + padding: 0 0.25em; + -webkit-transform: translate3d(1em, 2.75em, 0); + transform: translate3d(1em, 2.75em, 0); + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; +} + +.input__label-content--kozakura { + color: #A4A5A6; + padding: 0.4em 0 0.25em; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; +} + +.input__label-content--kozakura::after { + content: attr(data-content); + position: absolute; + font-weight: 800; + top: 100%; + left: 0; + height: 100%; + width: 100%; + color: #fff; + padding: 0.25em 0; + text-transform: uppercase; + letter-spacing: 1px; + font-size: 0.85em; +} + +.graphic--kozakura { + fill: #494E57; + pointer-events: none; + top: 1em; + bottom: 0px; + height: 4.5em; + z-index: -1; + -webkit-transition: -webkit-transform 0.7s, fill 0.7s; + transition: transform 0.7s, fill 0.7s; + -webkit-transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1); + transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1); +} + +.input__field--kozakura:focus, +.input--filled .input__field--kozakura { + -webkit-transition: opacity 0s 0.35s; + transition: opacity 0s 0.35s; + opacity: 1; +} + +.input__field--kozakura:focus + .input__label--kozakura, +.input--filled .input__label--kozakura { + -webkit-transition-delay: 0.15s; + transition-delay: 0.15s; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} + +.input__field--kozakura:focus + .input__label--kozakura .input__label-content--kozakura, +.input--filled .input__label-content--kozakura { + -webkit-transition-delay: 0.15s; + transition-delay: 0.15s; + -webkit-transform: translate3d(0, -100%, 0); + transform: translate3d(0, -100%, 0); +} + +.input__field--kozakura:focus ~ .graphic--kozakura, +.input--filled .graphic--kozakura { + fill: #fff; + -webkit-transform: translate3d(-66.6%, 0, 0); + transform: translate3d(-66.6%, 0, 0); +} diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..a2405c0 --- /dev/null +++ b/css/main.css @@ -0,0 +1,209 @@ +@import url(https://fonts.googleapis.com/css?family=Raleway:200,500,700,800); + +*, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; } +.clearfix:before, .clearfix:after { content: ''; display: table; } +.clearfix:after { clear: both; } + +body { + background: #f9f7f6; + color: #404d5b; + font-weight: 500; + font-size: 1.05em; + font-family: 'Raleway', Arial, sans-serif; +} + +a { + color: #2fa0ec; + text-decoration: none; + outline: none; +} + +a:hover, a:focus { + color: #404d5b; +} + +#headerdiv { +height: 50%; +} + +#contentdiv { +height: 50%; +} + +.aligncenter { + position: relative; + top: 50%; + transform: translateY(-50%); +} + +.container { + margin: 0 auto; + text-align: center; + overflow: hidden; + position:absolute; + top:0; + bottom:0; + left:0; + right:0; + overflow:hidden; + z-index:-1; /* Remove this line if it's not going to be a background! */ +} + +.content { + font-size: 150%; + padding: 3em 0; +} + +.content h2 { + margin: 0 0 0; + opacity: 0.4; +} + +.content p { + margin: 1em 0; + padding: 5em 0 0 0; + font-size: 0.65em; +} + +.bgcolor { background: #2f3238; color: #fff; } +.passfoundbg { background: #f92f2f; color: #000;} +.passnotfoundbg { background: #35c435; color: #000;} + +body .nomargin-bottom { + margin-bottom: 0; +} + +/* Header */ +.codrops-header { + padding: 3em 190px 4em; + letter-spacing: -1px; +} + +.codrops-header h1 { + font-weight: 800; + font-size: 4em; + line-height: 1; + margin: 0.25em 0 0; +} + +.codrops-header h1 span { + display: block; + font-size: 50%; + font-weight: 400; + padding: 0.325em 0 1em 0; + color: #c3c8cd; +} + +/* Demos nav */ +.codrops-demos a { + text-transform: uppercase; + letter-spacing: 1px; + font-weight: bold; + font-size: 0.85em; + display: inline-block; + margin: 0 1em; + font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif; +} + +.codrops-demos a.current-demo { + border-bottom: 2px solid; + color: #404d5b; +} + +/* 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%; + margin-left: -1px; + width: 2px; + height: 100%; + background: #dbdbdb; + 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 span { + display: 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--drop:before { + content: "\e001"; +} + +.codrops-icon--prev:before { + content: "\e004"; +} + +/* Related demos */ +.content--related { + text-align: center; + color: #D8DADB; + font-weight: bold; +} + +.media-item { + display: inline-block; + padding: 1em; + vertical-align: top; + -webkit-transition: color 0.3s; + transition: color 0.3s; +} + +.media-item__img { + opacity: 0.8; + -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.75em; + 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; + } +} diff --git a/css/normalize.css b/css/normalize.css new file mode 100644 index 0000000..27d0440 --- /dev/null +++ b/css/normalize.css @@ -0,0 +1 @@ +article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;} -- cgit v1.2.3