]> git.gir.st - subscriptionfeed.git/blob - app/static/style.css
add subscribe button to channel page (TODO:invidious)
[subscriptionfeed.git] / app / static / style.css
1 body {
2 font-family: sans-serif;
3 background: #333;
4 color: #eee;
5 }
6
7 .card-main .title,
8 .more-actions label,
9 a:link, a:visited ,
10 summary {
11 color: #ccc;
12 text-decoration: none;
13 cursor: pointer;
14 }
15
16 .card-main:hover .title, .card-main:active .title,
17 .more-actions label:hover, .more-actions label:active,
18 a:active, a:hover ,
19 summary:active, summary:hover {
20 color: #fff;
21 text-decoration: none;
22 }
23
24 article {
25 max-width: 1200px;
26 margin: auto;
27 }
28
29 .cards {
30 display: flex;
31 flex-wrap: wrap;
32 justify-content: center;
33 }
34 .cards hr {
35 width: 100%;
36 }
37
38 .card {
39 box-shadow: 0 0 5px #222;
40 border:1px solid #222;
41 padding: .5em;
42 margin: 0 .25em .5em .25em;
43 width: 270px;
44 }
45
46 .card .thumb {
47 width: 100%;
48 height: calc(270px / 16 * 9);
49 object-fit: contain;
50 }
51
52 .card .title {
53 margin-bottom: .5em;
54 height: 2.3em;
55 line-height: 1.2em;
56 overflow: hidden;
57 }
58
59 .card .card-main {
60 position: relative;
61 }
62
63 .card .link-main {
64 position: absolute;
65 left: 0; top: 0; right: 0; bottom: 0;
66 }
67
68 .card .infobar{
69 display: flex;
70 }
71
72 .card .info-main, .card .infobar>:first-child {
73 overflow: hidden;
74 white-space: nowrap;
75 text-overflow: ellipsis;
76 min-width: 0;
77 flex: 99;
78 }
79
80 .infobar .advanced{
81 flex: 1;
82 text-align: right;
83 }
84
85 .emoji{
86 padding: 0 .7em;
87 cursor:pointer;
88 background: none;
89 border: none;
90 color: white;
91 }
92 #submgr .emoji{
93 margin-right:1em
94 }
95 .advanced summary{
96 margin-bottom: .5em;
97 white-space: nowrap;
98 }
99 summary{
100 cursor: pointer;
101 }
102 details.advanced {
103 white-space: nowrap;
104 }
105 .advanced:not([open]) summary{
106 margin: 0;
107 }
108 .advanced form{
109 display:inline;
110 margin:0;
111 }
112 .advanced .details,
113 details .details {
114 display: flex;
115 }
116 .advanced .details>:last-child .emoji {
117 padding-right: 0
118 }
119 ul#submgr{list-style: none}
120 #submgr form {
121 display: inline;
122 }
123 #submgr li {
124 margin: 1em 0;
125 }
126
127 .video_error {
128 width: 100%;
129 background: #ff3333;
130 padding: 1em 2em;
131 border:1px solid #700;
132 border-radius: 8px;
133 box-sizing: border-box;
134 margin: 1.5em 0;
135 }
136 .video_error::before {
137 content: '\26A0\fe0e';
138 }
139 .video_error a:link, .video_error a:visited {
140 color:#700;
141 }
142 .video_error a:hover, .video_error a:active {
143 color:#a00;
144 }
145
146 .main-video {
147 width: 100%;
148 }
149 /* https://stackoverflow.com/a/20201563 */
150 .aspect-ratio {
151 position: relative;
152 /* Note: clamping aspect-ratio, to avoid vertical videos going off-screen */
153 padding-top: calc( 100% / max(var(--aspect-ratio), 4/3) );
154 }
155 .aspect-ratio video {
156 position: absolute;
157 top: 0; left: 0;
158 width: 100%;
159 height: 100%;
160 }
161
162 .more-actions input[type="checkbox"] {
163 margin: 0 .7em; /*like input.emoji's padding*/
164 }
165
166 .emoji-form {
167 display: inline;
168 }
Imprint / Impressum