@charset "utf-8"; /** * Stylesheet for preg_match() Regular Expression Tester * Author: thirdbeach.ca * Created: 2017-04-03 * Updated: 2017-04-20 * Validated: 2017-04-20 */ body{ font-family: Arial, Helvetica, sans-serif; font-size: 1.2em; line-height: 130%; background-color: #1A6A5F; } #content{ max-width: 960px; margin: 2em auto; padding: .5em 1.5em 1.5em 1.5em; border: 1px solid #000; border-radius: 1em; box-shadow: .2em .2em .7em #000; background-color: #70a538; } h1 { margin-bottom: 1.2em; font-size: 1.7em; font-weight: normal; text-shadow: .1em .1em .2em #000; color: #322c7c; } #about { margin-bottom: 2em; padding: 1em; border-radius: .5em; background-color: #5e8b2f; } #about p { margin: 0 0 .5em 0; padding: 0; } #about div { margin-left: 1em; } #about div p { margin-bottom: 0; } #example-description, #example-pattern { color: #501212; } #example-pattern { font-family: "Lucida Console", "Courier New", Courier, mono; } /* form */ form { border: 2px solid orange; padding: 0 4% .5em 5%; border: 2px solid #ffa500; border-radius: .5em; background-color: #bab95a; } label, input { display: block; padding-bottom: .2em; } input { box-sizing: border-box; width: 98%; margin: 0 0 1.2em 0; padding: .2em .5em; font-size: 1.1em; line-height: 130%; background-color: #b9d5bd; } input#pattern, input#subject { font-family: "Lucida Console", "Courier New", Courier, mono; } /* form buttons */ #try-button, #save-button { width: 6em; margin-top: 2em; padding: 2px 5px; border-radius: 4px; font-family: arial, sans-serif; font-size: 1.1em; background-color: #ffa500; } #save-button { margin-top: 1.2em; background-color: #89b42d } /* messages */ #passed { font-weight: bold; color: #090; } #failed { font-weight: bold; color: #f00; } #save-msg { height: 1.3em; font-style: normal; color: #2f549f; } .error { color: #ad4234; font-style: italic; } /* media queries */ @media only screen and (max-width: 700px) { body { font-size: 1em; } h1 { line-height: 120%; font-size: 1.5em; margin-bottom: 1em; } #about { margin-bottom: 1.3em; } input#pattern, input#subject { font-weight: bold; } } @media only screen and (max-width: 530px) { body { font-size: 1em; margin: 3px; } #content { margin: 1em auto; padding: .7em; box-shadow: none; } #about div { margin-left: 0; } #example-description, #example-pattern { display: block; margin-left: 0; line-height: 110%; margin: 0; } #example-pattern { letter-spacing: -1px; font-weight: bold; } }