Skip to content

Instantly share code, notes, and snippets.

@Thram
Last active June 15, 2017 12:29
Show Gist options
  • Select an option

  • Save Thram/b6d350824450198d7796bad959baf957 to your computer and use it in GitHub Desktop.

Select an option

Save Thram/b6d350824450198d7796bad959baf957 to your computer and use it in GitHub Desktop.
Simple style for a HTML console log
@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