runplay.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. .scroll {
  2. width: auto;
  3. }
  4. body {
  5. width: 100vw;
  6. height: 100vh;
  7. color: #f5f5dc;
  8. //background-image: linear-gradient(to bottom right, #111E25 0, #111 100%);
  9. background: #111E25;
  10. --padding: 5px;
  11. padding: var(--padding);
  12. --mc: #049e9a;
  13. }
  14. .main-box {
  15. width: 100%;
  16. display: flex;
  17. flex-direction: column;
  18. height: calc(100vh - var(--padding)*2);
  19. --h: 30px;
  20. border: 3px solid var(--mc);
  21. .main-box-header {
  22. background: var(--mc);
  23. height: var(--h);
  24. font-size: 16px;
  25. display: flex;
  26. .user-name {
  27. width: 20%;
  28. padding-left: 20px;
  29. line-height: var(--h);
  30. cursor: pointer;
  31. }
  32. .menu {
  33. width: 80%;
  34. padding-right: 20px;
  35. line-height: var(--h);
  36. display: inline-block;
  37. list-style: none;
  38. display: flex;
  39. justify-content: flex-end;
  40. a {
  41. color: #f5f5dc;
  42. padding: 0 15px;
  43. line-height: var(--h);
  44. }
  45. }
  46. }
  47. }
  48. .main-box-content {
  49. padding: 25px 5px 5px;
  50. height: calc(100% - var(--h));
  51. display: flex;
  52. & > div {
  53. margin: 0 10px
  54. }
  55. }
  56. .box {
  57. --mh: 10px;
  58. height: calc(100% - var(--mh));
  59. margin-top: var(--mh);
  60. border: 2px solid var(--mc);
  61. position: relative;
  62. border-radius: 5px;
  63. padding-top: 15px;
  64. .box-header {
  65. position: absolute;
  66. color: var(--mc);
  67. background: #111E25;
  68. font-size: 24px;
  69. font-weight: 600;
  70. top: -20px;
  71. left: 30px;
  72. padding: 0 10px;
  73. }
  74. .box-content {
  75. --sh: 300px;
  76. padding: 12px;
  77. padding-top: 2px;
  78. height: calc(100% - var(--mh)*3)
  79. }
  80. &.small {
  81. border-width: 1px;
  82. .box-header {
  83. font-size: 20px;
  84. top: -15px;
  85. left: 50%;
  86. }
  87. .box-content {
  88. height: 100%;
  89. }
  90. }
  91. .scene-info-box {
  92. --sh: 300px;
  93. }
  94. .log-cmd-box {
  95. --sh: 165px;
  96. #current-scene-box {
  97. height: 35px;
  98. background: #FF3366;
  99. color: #fff;
  100. text-align: center;
  101. border-radius: 5px;
  102. margin: 10px 12px 5px;
  103. span {
  104. font-size: 16px;
  105. line-height: 35px;
  106. }
  107. }
  108. .box-content {
  109. height: calc(100% - var(--mh)*3 - 45px );
  110. }
  111. }
  112. .base-box {
  113. --sh: 250px;
  114. }
  115. #count-down {
  116. position: absolute;
  117. top: 20px;
  118. right: 20px;
  119. color: red;
  120. font-weight: 600;
  121. font-size: 24px;
  122. }
  123. }
  124. #scene-info-box {
  125. display: flex;
  126. flex-direction: column;
  127. .round-box {
  128. line-height: 35px;
  129. font-weight: 600;
  130. font-size: 18px;
  131. text-align: center;
  132. color: #fff;
  133. border-radius: 5px;
  134. background: #FF3366;
  135. margin: 10px 0 5px;
  136. }
  137. .scene-box {
  138. width: 100%;
  139. margin: 5px 0;
  140. display: flex;
  141. flex-direction: column;
  142. //border: 1px solid #ddd;
  143. font-size: 1rem;
  144. border: 1px solid #e2ebd7;
  145. background: #e2ebd7;
  146. border-radius: 5px;
  147. cursor: pointer;
  148. .title {
  149. padding: 4px 20px;
  150. font-weight: 600;
  151. width: 100%;
  152. text-align: left;
  153. color: var(--mc);
  154. border-bottom: 1px solid var(--mc);
  155. /*color: #fff;
  156. background: #0094ff;*/
  157. position: relative;
  158. border-radius: 5px 5px 0 0;
  159. span {
  160. margin-right: 5px;
  161. &.no-scene {
  162. margin-right: 5px;
  163. }
  164. }
  165. .tool {
  166. position: absolute;
  167. right: 10px;
  168. top: 5px;
  169. }
  170. .attach-box {
  171. position: absolute;
  172. font-size: 0.875rem;
  173. right: 30px;
  174. top: 2px;
  175. }
  176. .attach {
  177. font-size: inherit;
  178. }
  179. }
  180. .desc {
  181. padding: 5px;
  182. color: #3c3c3c;
  183. white-space: normal;
  184. word-break: break-word;
  185. text-indent: 2em;
  186. min-height: 40px;
  187. .guide-box {
  188. font-size: 85%;
  189. .guide-title{
  190. font-weight:600;
  191. color:var(--mc);
  192. }
  193. .guide-info{
  194. margin:5px 0;
  195. color:#666;
  196. }
  197. }
  198. }
  199. &.active {
  200. .title {
  201. background: var(--mc);
  202. color: #fff;
  203. }
  204. }
  205. &.current-scene {
  206. border: 1px solid red;
  207. //background: #36a3f7
  208. }
  209. &.new-scene {
  210. border: 1px solid #ff6a00;
  211. }
  212. &.flash-scene {
  213. .title {
  214. background: #339999;
  215. border-bottom: 1px solid #339999;
  216. color: #fff;
  217. span {
  218. animation: flash 2.0s infinite;
  219. }
  220. }
  221. }
  222. }
  223. }
  224. .role-change-box {
  225. display:none;
  226. min-height: 100px;
  227. border: 1px solid var(--mc);
  228. background: #3c3c3c;
  229. position: absolute;
  230. bottom: calc(100% + 20px);
  231. padding: 10px;
  232. bottom: calc(100% - 10px);
  233. padding:5px 10px;
  234. left: -30%;
  235. right: 20%;
  236. z-index:2;
  237. border-radius:5px;
  238. .role {
  239. margin: 6px;
  240. padding: 5px 10px;
  241. font-size: 14px;
  242. color: #fff;
  243. background: var(--mc);
  244. }
  245. }
  246. .score-info-box {
  247. /*display: flex;
  248. flex-direction: column;*/
  249. .score-box {
  250. margin: 5px;
  251. padding: 8px 25px;
  252. //display: flex;
  253. //justify-content: center;
  254. border-radius: 5px;
  255. border: 1px solid #e2ebd7;
  256. color: #e2ebd7;
  257. display: block;
  258. float: left;
  259. width: auto;
  260. text-align: center;
  261. background: #3c3c3c;
  262. &.system-score {
  263. font-size: 18px;
  264. width: calc(100% - 10px);
  265. }
  266. &.tag-score {
  267. font-size: 14px;
  268. padding: 5px 25px;
  269. width: calc(50% - 10px);
  270. }
  271. .name {
  272. font-weight: 600;
  273. white-space: nowrap;
  274. }
  275. .socre {
  276. word-break: break-word;
  277. }
  278. }
  279. }
  280. .media-box {
  281. width: 100%;
  282. height: 100%;
  283. .body-content {
  284. width: 100%;
  285. height: 100%;
  286. }
  287. }
  288. .cmd-box {
  289. .tool-box {
  290. margin-bottom: 10px;
  291. .role {
  292. cursor: pointer;
  293. min-width: 100px;
  294. border-radius: 20px;
  295. }
  296. }
  297. .msg-box {
  298. position: relative;
  299. span {
  300. position: absolute;
  301. bottom: 10px;
  302. right: 15px;
  303. }
  304. textarea {
  305. border: 1px solid var(--mc);
  306. background: #111e25;
  307. color: #f5f5dc;
  308. &:focus, &:active {
  309. background: #111e25;
  310. color: #f5f5dc;
  311. }
  312. }
  313. }
  314. .tool-footer {
  315. display: flex;
  316. span {
  317. width: 50%;
  318. margin: 5px 10px;
  319. }
  320. }
  321. }
  322. .base-box .base-info-box {
  323. dl {
  324. width: 100%;
  325. display: flex;
  326. font-size: 16px;
  327. margin-bottom: 0;
  328. }
  329. dt {
  330. width: 80px;
  331. text-align: right;
  332. font-weight: 600;
  333. cursor: none;
  334. }
  335. dd {
  336. width: calc(100% - 80px);
  337. text-align: left;
  338. word-break: break-all;
  339. padding-left: 10px;
  340. margin-bottom: 5px;
  341. cursor: none;
  342. .role {
  343. margin: 3px 5px;
  344. cursor: pointer;
  345. }
  346. .role-help {
  347. margin: 0;
  348. width: 100%;
  349. text-align: center;
  350. color: #666;
  351. }
  352. }
  353. }
  354. .scene-path-box{
  355. width:auto;
  356. }
  357. .log-comment {
  358. display: flex;
  359. background: #e2ebd7;
  360. margin: 8px 0;
  361. padding: 8px;
  362. border-radius: 5px;
  363. border: 1px solid var(--mc);
  364. &.split-line {
  365. padding:0;
  366. height:0;
  367. border:none;
  368. border-bottom:2px dashed var(--mc);
  369. }
  370. img {
  371. padding: 5px;
  372. width: 50px;
  373. height: 50px;
  374. border-radius: 50%;
  375. }
  376. .comment-text {
  377. padding: 5px;
  378. width: 100%;
  379. display: flex;
  380. flex-direction: column;
  381. .name {
  382. color: var(--mc);
  383. width: 100%;
  384. font-weight: 600;
  385. font-size: 1rem;
  386. .log-state {
  387. float: right;
  388. &:not(:disabled) {
  389. cursor: pointer;
  390. }
  391. }
  392. }
  393. .log-text {
  394. width: 100%;
  395. word-break: break-all;
  396. color: #3c3c3c;
  397. }
  398. }
  399. }
  400. .environment {
  401. width: 100vw;
  402. height: 100vh;
  403. background: #000000;
  404. background: rgba(0, 0, 0, .7);
  405. position: fixed;
  406. top: 0;
  407. right: 0;
  408. bottom: 0;
  409. left: 0;
  410. z-index: 5;
  411. .close {
  412. position: absolute;
  413. top: 100px;
  414. right: 250px;
  415. font-size: 16px;
  416. padding: 8px 20px;
  417. color: #fff;
  418. border: 1px solid;
  419. font-weight: 500;
  420. opacity: .85;
  421. z-index: 6;
  422. cursor: pointer;
  423. &:not(:disabled):not(.disabled):hover, &:not(:disabled):not(.disabled):focus {
  424. color: #fff;
  425. text-decoration: none;
  426. opacity: 1;
  427. }
  428. }
  429. .play-box {
  430. height: 80%;
  431. width: 80%;
  432. min-width: 600px;
  433. max-width: 800px;
  434. min-height: 400px;
  435. max-height: 700px;
  436. margin: 150px auto;
  437. text-align: center;
  438. img, video {
  439. width: 100%;
  440. height: 100%;
  441. opacity: 1;
  442. }
  443. audio {
  444. display:none;
  445. }
  446. }
  447. }
  448. .flash {
  449. animation: fade 1s infinite;
  450. -webkit-animation: fade 1s infinite;
  451. }
  452. @keyframes flash {
  453. from {
  454. opacity: 1.0;
  455. transform:scale(1);
  456. }
  457. 50% {
  458. opacity: 0.5;
  459. transform:scale(0.95);
  460. }
  461. to {
  462. opacity: 1.0;
  463. transform:scale(1);
  464. }
  465. }
  466. @-webkit-keyframes flash {
  467. from {
  468. opacity: 1.0;
  469. transform: scale(1);
  470. }
  471. 50% {
  472. opacity: 0.5;
  473. transform: scale(0.95);
  474. }
  475. to {
  476. opacity: 1.0;
  477. transform: scale(1);
  478. }
  479. }
  480. @keyframes fade {
  481. from {
  482. opacity: 1.0;
  483. transform:scale(1);
  484. }
  485. 50% {
  486. opacity: 0.9;
  487. transform:scale(0.9);
  488. }
  489. to {
  490. opacity: 1.0;
  491. transform:scale(1);
  492. }
  493. }
  494. @-webkit-keyframes fade {
  495. from {
  496. opacity: 1.0;
  497. transform: scale(1);
  498. }
  499. 50% {
  500. opacity: 0.8;
  501. transform: scale(0.9);
  502. }
  503. to {
  504. opacity: 1.0;
  505. transform: scale(1);
  506. }
  507. }