Last active
June 15, 2017 12:29
-
-
Save Thram/b6d350824450198d7796bad959baf957 to your computer and use it in GitHub Desktop.
Simple style for a HTML console log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import url('https://fonts.googleapis.com/css?family=Inconsolata'); | |
| .console { | |
| font-family: 'Inconsolata', monospace; | |
| border-radius: .5rem; | |
| background: #1D1F20; | |
| padding: .5rem; | |
| margin: 1rem; | |
| white-space: pre-wrap; /* CSS3 */ | |
| white-space: -moz-pre-wrap; /* Firefox */ | |
| white-space: -pre-wrap; /* Opera <7 */ | |
| white-space: -o-pre-wrap; /* Opera 7 */ | |
| word-wrap: break-word; /* IE */ | |
| } | |
| .log { | |
| color: white; | |
| } | |
| .background { | |
| opacity: .6; | |
| font-style: italic; | |
| } | |
| .success { | |
| color: rgb(28, 184, 65); /* this is a green */ | |
| } | |
| .error { | |
| color: rgb(202, 60, 60); /* this is a maroon */ | |
| } | |
| .warning { | |
| color: rgb(223, 117, 20); /* this is an orange */ | |
| } | |
| .info { | |
| color: rgb(66, 184, 221); /* this is a light blue */ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment