view src/bbcode/bbcode.css @ 49:f225e82b2bf8

add code bbcode
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 17 Nov 2022 16:46:21 -0700
parents 7ef9222474e2
children 0d99cec5142c
line wrap: on
line source

div[bbcode] * {
 	box-sizing: border-box;
}
div[bbcode] textarea {
	font: inherit;
	padding: 7px;
	border-color: #DDDDDD;
	width: 100%;
}

div[bbcode] input[type="file"] {
	display: none;
}

div[bbcode] button:hover {
	cursor: pointer;
}

div[bbcode] div[buttons] {
	display: flex;
	justify-content: flex-end;
}
div[bbcode] div[buttons] button {
	border: 0;
	background-color: transparent;
	border-radius: 4px;
}
div[bbcode] div[buttons] button:hover {
	background-color: lightgrey;
}
div[bbcode] div[buttons] button[checked] {
	background-color: lightblue;
}
div[bbcode] div[buttons] img {
	height: 24px;
}

div[from_bbcode] {
	white-space: pre-wrap;
	line-height: 1.4;
}
div[from_bbcode] code {
	display: block;
	background-color: #EEE;
	padding: 7px;
}
div[from_bbcode] code[inline] {
	display: initial;
	padding: 1px;
}