aboutsummaryrefslogtreecommitdiff
path: root/cgit-responsive.css
blob: 26da3e721c0d1d299d6d93e3ea88db5e9b2fd186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@media only screen and (max-width: 800px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
  /* HEADER */
  /* remove logo (save space) */
  div#cgit table#header td.logo {
    display: none;
  }
  /* wrap title text */
  div#cgit table#header td.main {
    white-space: normal;
  }
  /* td as block */
  div#cgit table#header td {
    display: block;
  }
  /* move branch switcher to left */
  div#cgit table#header td.form {
    text-align: left;
  }
  /* Don't display author (save space) */
  div#cgit table#header td.sub.right {
    display: none;
  }

  /* TABS */
  /* both tabs and form are blocks */
  div#cgit table.tabs td {
    display: block;
  }
  /* every tab is block */
  div#cgit table.tabs td a {
    display: block;
    text-align: right;
  }

  /* CONTENT */
  div#cgit div.content {
    overflow-x: auto;
    padding: 0.5em;
  }
  td.ls-mode {
    white-space: nowrap;
  }

  /* PANEL ALIGNMENT */
  div#cgit div.cgit-panel {
    float: left;
  }
}