// ---------------------------------------------------------------------------- // Sass declarations // ---------------------------------------------------------------------------- $background-color: #607d8b; $font-size: 0.85em; $rounded-width: 1.72em; $rounded-height: 1.3em; $rect-width: 1.72em; $rect-height: 1em; // ---------------------------------------------------------------------------- // Widget-ratp styles // ---------------------------------------------------------------------------- .widget-ratp { font-size: $font-size; background-color: $background-color; display: flex !important; h1 { margin-top: 12px; } .alert { background-color: rgba(255, 165, 0, 0.4); } .critical { background-color: rgba(255, 0, 0, 0.3); } .bus, .noctilien { width: $rect-width; height: $rect-height; } .metro, .tram, .rer { width: $rounded-width; height: $rounded-height; } .dest { padding-left: 0.2em; padding-right: 0.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; flex: 1 1 auto; } .time { white-space: nowrap; } .grayed { color: #a2a2a2; } .condensed { font-size: 0.8em; } #ratpContainer { height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: space-around; } .item { padding-left: 0.2em; padding-right: 0.2em; display: flex; align-items: center; flex: 1 1 auto; border: 1px solid rgba(0, 0, 0, 0.125); flex-direction: row; justify-content: space-between; } .updated-at { position: relative; margin-top: 10px; margin-bottom: 10px; bottom: 0; } }