view src/bbcode/bbcode.css @ 51:78b2d6995244

add preview
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 22 Nov 2022 22:57:43 -0700
parents 0d99cec5142c
children 9f8ebc757814
line wrap: on
line source

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

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

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

div[bbcode_editor] div[buttons] {
	display: flex;
	justify-content: flex-end;
}
div[bbcode_editor] button {
	border: 0;
	background-color: transparent;
	border-radius: 4px;
}
div[bbcode_editor] button:hover {
	background-color: lightgrey;
}
div[bbcode_editor] button[checked] {
	background-color: lightblue;
}
div[bbcode_editor] button:disabled {
	cursor: not-allowed;
	background-color: initial;
	opacity: 0.3;
}
div[bbcode_editor] div[buttons] img {
	height: 24px;
}
div[bbcode_editor] div[preview] {
	display: none;
	border: solid #888888;
	padding: 7px;
	margin-bottom: 4px;
}


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;
}