summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/mobile.scss
blob: 0140dcf19c320c41fc4343c9241ae6d7f9710beb (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/** Common mobile (screen XS, SM) styles **/
@media (max-width: $screen-xs-max) {
  .container .content {
    margin-top: 20px;
  }

  .container-fluid {
    padding-left: 5px;
    padding-right: 5px;
  }

  .nav-links > li > a {
    padding: 10px;
    font-size: 12px;
    margin-right: 3px;

    .badge {
      display: none;
    }
  }

  .referenced-users {
    margin-right: 0;
  }

  .issues-details-filters:not(.filtered-search-block),
  .dash-projects-filters,
  .check-all-holder {
    display: none;
  }

  .issues-holder .issue-check {
    display: none;
  }

  .rss-btn {
    display: none;
  }

  .project-home-links {
    display: none;
  }

  .project-home-panel {
    padding-left: 0 !important;

    .project-avatar {
      display: block;
    }

    .project-repo-buttons,
    .git-clone-holder {
      display: none;
    }

    // Display Star and Fork buttons without counters on mobile.
    .project-repo-buttons {
      display: block;

      .count-buttons .btn {
        margin: 0 10px;
      }

      .count-buttons .count-with-arrow {
        display: none;
      }
    }
  }

  .project-stats {
    display: none;
  }

  .group-buttons {
    display: none;
  }

  .container .title {
    padding-left: 15px !important;
  }

  .nav-links,
  .nav-links {
    li a {
      font-size: 14px;
      padding: 19px 10px;
    }
  }

  .activity-filter-block {
    display: none;
  }

  .projects-search-form {
    .btn {
      display: none;
    }
  }
}

@media (max-width: $screen-sm-max) {
  .issues-filters {
    .milestone-filter {
      display: none;
    }
  }

  .page-title {
    .note-created-ago,
    .new-issue-link {
      display: none;
    }
  }

  aside:not(.right-sidebar) {
    display: none;
  }

  .show-aside {
    display: block !important;
  }
}

.show-aside {
  display: none;
  position: fixed;
  right: 0;
  top: 30%;
  padding: 5px 15px;
  background: $show-aside-bg;
  font-size: 20px;
  color: $show-aside-color;
  z-index: 100;
  box-shadow: 0 1px 2px $show-aside-shadow;
}