prism-command-line.css 949 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. .command-line-prompt {
  2. border-right: 1px solid #999;
  3. display: block;
  4. float: left;
  5. font-size: 100%;
  6. letter-spacing: -1px;
  7. margin-right: 1em;
  8. pointer-events: none;
  9. text-align: right;
  10. -webkit-user-select: none;
  11. -moz-user-select: none;
  12. -ms-user-select: none;
  13. user-select: none;
  14. }
  15. .command-line-prompt > span:before {
  16. opacity: 0.7;
  17. content: ' ';
  18. display: block;
  19. padding-right: 0.8em;
  20. }
  21. .command-line-prompt > span[data-user]:before {
  22. content: "[" attr(data-user) "@" attr(data-host) "] $";
  23. }
  24. .command-line-prompt > span[data-user="root"]:before {
  25. content: "[" attr(data-user) "@" attr(data-host) "] #";
  26. }
  27. .command-line-prompt > span[data-prompt]:before {
  28. content: attr(data-prompt);
  29. }
  30. .command-line-prompt > span[data-continuation-prompt]:before {
  31. content: attr(data-continuation-prompt);
  32. }
  33. .command-line span.token.output {
  34. /* Make shell output lines a bit lighter to distinguish them from shell commands */
  35. opacity: 0.7;
  36. }