Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.css 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /*
  2. All classes used by this module use the prefix "pth" (PublicTransportHafas) to separate
  3. them from the rest of the interface.
  4. */
  5. .pthWrapper {
  6. position: relative;
  7. }
  8. .pthTable {
  9. border-collapse: collapse;
  10. border-spacing: 1px;
  11. display: table;
  12. }
  13. .pthTable>thead {
  14. text-align: left;
  15. }
  16. .pthTable td {
  17. vertical-align: middle;
  18. }
  19. .pthTimeCell {
  20. text-align: left;
  21. }
  22. .pthCanceled {
  23. text-decoration: line-through;
  24. }
  25. .pthDirectionCell {
  26. max-width: 24ch;
  27. min-width: 16ch;
  28. overflow: hidden;
  29. padding-left: 1ch;
  30. padding-right: 1ch;
  31. text-overflow: ellipsis;
  32. white-space: nowrap;
  33. }
  34. .pthPlatformCell {
  35. padding-left: 1ch;
  36. padding-right: 1ch;
  37. }
  38. .pthRulerCell {
  39. border-bottom: 1px dotted #666;
  40. border-spacing: 10px;
  41. line-height: 0;
  42. }
  43. .pthTextLeft {
  44. text-align: left;
  45. }
  46. .pthTextRight {
  47. text-align: right;
  48. }
  49. .pthTextCenter {
  50. text-align: center;
  51. }
  52. .pthDelay {
  53. font-size: 0.8em;
  54. font-weight: bolder;
  55. }
  56. .pthHasDelay {
  57. color: red;
  58. }
  59. .pthIsTooEarly {
  60. color: green;
  61. }
  62. .pthMarquee {
  63. box-sizing: border-box;
  64. margin: 0 auto;
  65. overflow: hidden;
  66. text-align: left;
  67. white-space: nowrap;
  68. }
  69. .pthMarquee span {
  70. animation: pthMarquee 3s linear infinite alternate;
  71. display: inline-block;
  72. white-space: nowrap;
  73. }
  74. @keyframes pthMarquee {
  75. /* Two keyframe positions each to generate a little delay between animations. */
  76. 0%, 30% {
  77. transform: translate(0%, 0);
  78. }
  79. 95%, 100% {
  80. transform: translate(-35%, 0);
  81. }
  82. }
  83. /* Styles for line symbols. */
  84. .pthSign {
  85. background-color: #333333;
  86. color: #666666;
  87. min-width: 2.5ch;
  88. font-size: 0.9em;
  89. font-weight: bold;
  90. margin: 0.2rem auto;
  91. padding: 0 0.3rem;
  92. position: relative;
  93. text-align: center;
  94. }
  95. .pthBWLineSign {
  96. background-color: #333333;
  97. color: #666666;
  98. margin-right: 0.3em;
  99. }
  100. /* Default properties for Deutsche Bahn products. */
  101. .pthDbStandard {
  102. border-radius: 0.25rem;
  103. font-size: 0.8em;
  104. }
  105. .ice, .ic {
  106. background-color: white;
  107. border-bottom: 4px #F01414 solid;
  108. color: #F01414;
  109. }
  110. .rb, .re {
  111. background-color: rgb(31, 131, 50);
  112. border: 0.5px white solid;
  113. color: white;
  114. }
  115. .s {
  116. background-color: rgb(0, 111, 53);
  117. border: 0.5px white solid;
  118. color: white;
  119. width: max-content;
  120. }
  121. /* Default properties for busses (general) and obusses (SVV) */
  122. .bus, .obus {
  123. border-radius: 1em;
  124. background-color: rgb(122, 32, 106);
  125. color: white;
  126. width: max-content;
  127. }
  128. /* Default properties for "Rufbusse" */
  129. .ruf:before {
  130. content: "☎ ";
  131. color: white;
  132. font-size: 0.8em;
  133. }
  134. .ruf {
  135. border-radius: 1rem;
  136. background-color: rgb(122, 32, 106);
  137. color: white;
  138. width: max-content;
  139. }
  140. /* Default properties for trams */
  141. .str, .stb {
  142. background-color: rgb(255, 0, 0);
  143. color: white;
  144. width: max-content;
  145. }
  146. /* Default properties for subways */
  147. .u {
  148. background-color: rgb(0, 101, 173);
  149. color: white;
  150. width: max-content;
  151. }
  152. .iceWithProductName:before {
  153. content: "ICE ";
  154. }
  155. .icWithProductName:before {
  156. content: "IC ";
  157. }
  158. .reWithProductName:before {
  159. content: "RE ";
  160. }
  161. .rbWithProductName:before {
  162. content: "RB ";
  163. }
  164. .sWithProductName:before {
  165. content: "S";
  166. }
  167. .uWithProductName:before {
  168. content: "U";
  169. }