visuddhinanda 4 лет назад
Родитель
Сommit
20ff78cc0c
1 измененных файлов с 69 добавлено и 0 удалено
  1. 69 0
      app/term/term.css

+ 69 - 0
app/term/term.css

@@ -706,6 +706,7 @@ pw {
 	display: none;
 }
 .body > .edit textarea {
+	/*
 	color: var(--main-color);
 	width: 100%;
 	background-color: var(--drop-bg-color);
@@ -715,6 +716,7 @@ pw {
 	line-height: 1.5em;
 	height: 90px;
 	font-size: 120%;
+	*/
 }
 .foot_bar {
 	font-size: 90%;
@@ -993,4 +995,71 @@ pali>p {
     text-align: center;
     display: inline-block;
     margin-left: 5px;
+}
+
+/*术语输入AT弹出菜单*/
+.text_input>.textarea{
+	padding: 5px;
+	font-family: inherit;
+	width: 100%;
+	height: 100px;
+	resize: vertical;
+	font-size: 14px;
+	line-height: 1;
+	border: 1px solid #ddd;
+	white-space: pre-wrap;
+	word-break: break-all;
+	z-index: 1;
+	resize: vertical;
+	color: var(--main-color);
+	width: 100%;
+	background-color: var(--drop-bg-color);
+	border: unset;
+	border-radius: 8px;
+	padding: 5px;
+	line-height: 1.5em;
+}
+.text_input>.text_shadow{
+	position: absolute;
+	width: 100%;
+	visibility: hidden;
+}
+.text_input .cursor{
+	position: absolute;
+	border-left: 1px solid #000;
+}
+.text_input>.menu{
+	width: 200px;
+	height:300px;
+	background-color: aqua;
+	box-shadow: #000;
+	position:absolute;
+	display: none;
+	z-index: 100;
+}
+.text_input>.menu ul{
+	list-style-type: none;
+	margin: 0;
+	padding: 0;
+}
+.text_input>.menu ul li{
+	cursor: pointer;
+}
+.text_input>.menu ul li:hover{
+	background-color: wheat;
+}
+.text_input>.menu .focus{
+	color:red;
+}
+.term_at_menu_input{
+	height:1em;
+	border: 1px solid gray;
+}
+.text_input{
+	width:100%;
+	position: relative;
+}
+
+.term_mean {
+    text-transform: capitalize;
 }