mobile.scss 2.0 KB
Newer Older
1
/** Common mobile (screen XS, SM) styles **/
D
Dmitriy Zaporozhets 已提交
2 3 4 5 6
@media (max-width: $screen-xs-max) {
  .container .content {
    margin-top: 20px;
  }

7 8 9 10 11
  .container-fluid {
    padding-left: 5px;
    padding-right: 5px;
  }

12
  .nav-links > li > a {
D
Dmitriy Zaporozhets 已提交
13 14 15 16 17 18 19 20
    padding: 10px;
    font-size: 12px;
    margin-right: 3px;

    .badge {
      display: none;
    }
  }
21

22
  .referenced-users {
23 24 25
    margin-right: 0;
  }

26
  .issues-details-filters,
27 28
  .dash-projects-filters,
  .check-all-holder {
29 30 31 32
    display: none;
  }

  .rss-btn {
33
    display: none;
34 35 36 37 38
  }

  .project-home-links {
    display: none;
  }
39 40 41 42

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

43 44
    .project-avatar {
      display: block;
45
    }
46 47 48 49 50

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

    // Display Star and Fork buttons without counters on mobile.
53
    .project-repo-buttons {
54 55 56 57 58 59 60 61 62 63
      display: block;

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

      .count-buttons .count-with-arrow {
        display: none;
      }
    }
64 65 66 67
  }

  .project-stats {
    display: none;
68 69
  }

70
  .group-buttons {
71 72 73
    display: none;
  }

74
  .container .title {
75
    padding-left: 15px !important;
76
  }
D
Dmitriy Zaporozhets 已提交
77

78 79
  .nav-links,
  .nav-links {
80 81 82 83 84 85
    li a {
      font-size: 14px;
      padding: 19px 10px;
    }
  }

86 87 88
  .activity-filter-block {
    display: none;
  }
89

90
  .projects-search-form {
91 92 93 94
    .btn {
      display: none;
    }
  }
D
Dmitriy Zaporozhets 已提交
95 96
}

97 98
@media (max-width: $screen-sm-max) {
  .issues-filters {
99 100
    .milestone-filter,
    .labels-filter {
101 102 103 104
      display: none;
    }
  }

105
  .page-title {
106 107
    .note-created-ago,
    .new-issue-link {
108 109
      display: none;
    }
110
  }
111

112 113
  .issue_edited_ago,
  .note_edited_ago {
114 115
    display: none;
  }
116

117
  aside:not(.right-sidebar) {
118 119 120 121 122 123 124 125 126 127 128
    display: none;
  }

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

.show-aside {
  display: none;
  position: fixed;
129
  right: 0;
130 131
  top: 30%;
  padding: 5px 15px;
S
Sam Rose 已提交
132
  background: $show-aside-bg;
133
  font-size: 20px;
S
Sam Rose 已提交
134
  color: $show-aside-color;
135
  z-index: 100;
S
Sam Rose 已提交
136
  box-shadow: 0 1px 2px $show-aside-shadow;
137
}