Skip to content
Permalink
6da1d98946
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
612 lines (554 sloc) 11.5 KB
@import url('https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i');
/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */
html {
color: #222;
font-size: 1em;
line-height: 1.4;
}
/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* These selection rule sets have to be separate.
* Customize the background color to match your design.
*/
::-moz-selection {
background: #b3d4fc;
text-shadow: none; }
::selection {
background: #b3d4fc;
text-shadow: none; }
/*
* A better looking default horizontal rule
*/
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0; }
/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/
audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle; }
/*
* Remove default fieldset styles.
*/
fieldset {
border: 0;
margin: 0;
padding: 0; }
/*
* Allow only vertical resizing of textareas.
*/
textarea {
resize: vertical; }
/* ==========================================================================
Browser Upgrade Prompt
========================================================================== */
.browserupgrade {
margin: 0.2em 0;
background: #ccc;
color: #000;
padding: 0.2em 0; }
/* ==========================================================================
Author's custom styles
========================================================================== */
/*colors--------------------------------------*/
/*nav bars------------------------------------*/
*{
box-sizing: border-box;
font-family: "roboto";
}
body{
width: 100vw;
}
main.intro{
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
background-color: #65b2ff;
display: flex;
justify-content: center;
align-items: center;
}
div.intro{
margin-top: 1rem;
margin: 1rem 1rem 1rem 1rem;
padding: 3rem;
height: 100vh;
top: 0;
display: flex;
flex-direction: column;
justify-content: space-around;
text-align: center;
max-width: 35rem;
max-height: 40rem;
}
.intro h1{
font-size: 2.3rem;
color: #000633;
}
.intro p{
text-align: left;
height: 40vh;
color: white;
line-height: 1.45rem;
}
.intro a{
font-size: 2rem;
color: white;
text-decoration: none;
padding: 1rem;
background-color: #000633;
border-radius: 10px;
width: 100%;
}
nav h1{
flex-grow: 1;
margin: 0 0;
font-size: 1.5rem;
margin-left: 1.25rem;
color: white;
}
h1.title{
display: none;
}
nav.top-nav {
position: fixed;
top: 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #65b2ff;
z-index: 10; }
nav.top-nav a {
margin: .5rem;
}
.closed{
left: -100vw;
}
div.slide-menu{
position: fixed;
top: 0;
height: 100vh;
background-color: white;
width: 18rem;
display: flex;
flex-direction: column;
padding: 1rem;
box-shadow: 5px 0px 8px rgba(0, 0, 0, 0.35);
}
nav img{
max-width: 3rem;
width: 3rem;
}
div.main-bttns{
display: flex;
align-items: center;
flex-direction: row;
width: 100%;
}
div.slide-menu button{
margin: 1rem 0;
text-align: left;
font-weight: 600;
font-size: 1.2rem;
}
div.slide-menu p{
/* margin-top: rem;*/
}
div.slide-menu a{
/* margin-top: 0rem;*/
}
div.close-menu{
position: fixed;
top: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.42);
}
h3{
margin: 0;
font-size: 1.25rem;
font-weight: 600;
}
h4{
font-weight: 400;
font-size: 1.1rem;
margin-bottom: 0;
}
p{
font-weight: 300;
}
a.settings{
position: absolute;
bottom: 2rem;
}
div.well-preview{
position: fixed;
top: 4.7rem;
width: 95vw;
background-color: white;
border: 2px solid black;
margin: .5rem;
border-radius: 3px;
}
div.well-preview a{
position: absolute;
right: 2rem;
font-weight: 600;
text-decoration: none;
color: #65b2ff;
}
div.slide-menu a{
margin-bottom: 2rem;
text-decoration: none;
color: inherit;
font-weight: 500;
font-size: 1.25rem;
}
nav.bottom-nav {
position: fixed;
bottom: 0;
width: 100%;
display: flex;
justify-content: space-around;
background-color: #65b2ff; }
nav.bottom-nav button, nav.bottom-nav a {
margin: .5rem;
display: flex;
justify-content: center;
align-items: center;}
a > img{
margin-left: auto;
margin-right: auto;
}
a.add-well{
display: flex;
justify-content: center;
align-items: center;
}
nav.fabs {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
position: fixed;
bottom: 6rem;
right: 0;
width: 6rem;
height: 8rem; }
button, a {
background-color: transparent;
border: none; }
button.add-well, a.add-well {
background: #65b2ff;
border-radius: 10rem;
width: 4rem;
height: 4rem; }
button.gps {
background: #65b2ff;
border-radius: 10rem;
width: 2rem;
height: 2rem; }
button.gps img {
width: 100%; }
.google-maps {
position: relative;
padding-bottom: 100vh;
height: 0;
overflow: hidden;
}
.google-maps iframe {
position: absolute;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
}
main{
margin-top: 0;
}
main.details {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
width: 100%;
}
nav.form a{
text-decoration: none;
font-weight: 600;
color: white;
font-size: 1.25rem;
padding: .5rem;
}
main img{
width: 100%;
}
form ul, h2, main.details ul{
margin: 1rem
}
main.details li, main.details p{
margin: 0rem
}
label[for=well-picture] {
margin-top: 60px;
background: lightgray;
}
label[for=well-picture] img {
width: 100%;
}
label[for=gps-coordinates] img {
height: 1.75rem;
}
h2{
width: calc(100% - 2rem);
font-weight: 700;
margin-bottom: 0;
border-bottom: 1px solid black;
}
h3{
font-weight: 500;
}
label {
display: block;
font-weight: 500;
}
ul.inputs{
margin-top: 0;
list-style: none;
padding-left: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
}
ul.inputs li{
padding: 1rem 0;
width: 100%;
font-size: 1.2rem;
}
li input[type=text], select, input[type=number].long-num {
width: 100%;
height: 2.5rem;
}
li input[type=date] {
height: 2.5rem;
}
input[type=number].med-num{
width: 6rem;
}
textarea{
width: 100%;
height: 10rem;
}
li input[type=number] {
width: 4.4rem;;
height: 2.5rem;
}
#get-gps-local input{
width: calc(100% - 3.5rem);
}
#get-gps-local button img{
height: 2.4rem;
}
.other{
margin-top: 1rem;
display: none;
}
#depth-from-surface input[type=text]{
margin: 1rem 4rem;
width: calc(100% - 8rem);
align-self: flex-start;
}
input[type=submit]{
margin: 1rem;
height: 3rem;
}
form.search{
width:100%;
max-width: none;
max-width: 41rem;
}
input[type=search]{
width: 100%;
padding: .7rem;
margin: .5rem;
background: rgba(255, 255, 255, 0.19);
border: none;
/* //border-bottom: 2px rgb(255, 255, 255) solid;*/
color: white;
font-weight: 600;
font-size: 1.2rem;
border-radius: 5px;
max-width: 40rem;
}
nav.search{
justify-content: center;
}
div.desk-details {
display: none;
}
div.group{
width: 100%;
max-width: 26rem;
}
main.search{
margin-top: 4.2rem;
}
main.details{
margin-top: 53px;
}
main.list{
margin-top: 64px;
margin-bottom: 66px;
}
input[type=file]{
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
/* ==========================================================================
Helper classes
========================================================================== */
/*
* Hide visually and from screen readers
*/
.hidden {
display: none !important; }
/*
* Hide only visually, but have it available for screen readers:
* http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*/
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px; }
/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto; }
/*
* Hide visually and from screen readers, but maintain layout
*/
.invisible {
visibility: hidden; }
/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* `contenteditable` attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.clearfix:before,
.clearfix:after {
content: " ";
/* 1 */
display: table;
/* 2 */ }
.clearfix:after {
clear: both; }
/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
These examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */
@media only screen and (min-width: 35em) {
/* Style adjustments for viewports that meet the condition */ }
@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */ }
/* ==========================================================================
Print styles.
Inlined to avoid the additional HTTP request:
http://www.phpied.com/delay-loading-your-print-css/
========================================================================== */
@media print {
*,
*:before,
*:after,
*:first-letter,
*:first-line {
background: transparent !important;
color: #000 !important;
/* Black prints faster:
http://www.sanbeiji.com/archives/953 */
box-shadow: none !important;
text-shadow: none !important; }
a,
a:visited {
text-decoration: underline; }
a[href]:after {
content: " (" attr(href) ")"; }
abbr[title]:after {
content: " (" attr(title) ")"; }
/*
* Don't show links that are fragment identifiers,
* or use the `javascript:` pseudo protocol
*/
a[href^="#"]:after,
a[href^="javascript:"]:after {
content: ""; }
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid; }
/*
* Printing Tables:
* http://css-discuss.incutio.com/wiki/Printing_Tables
*/
thead {
display: table-header-group; }
tr,
img {
page-break-inside: avoid; }
img {
max-width: 100% !important; }
p,
h2,
h3 {
orphans: 3;
widows: 3; }
h2,
h3 {
page-break-after: avoid; } }