summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/pages/snippets.scss
blob: 39034a1391fd9657f74f8fc37e35aaca1f2e3eb5 (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
.my-snippets li:first-child {
  h4 { margin-top: 0; }
  padding-top: 0;
}

.snippet-form-holder .file-holder .file-title {
  padding: 2px;
}


.snippet-row {
  .snippet-title {
    font-size: 15px;
    font-weight: bold;
    line-height: 20px;
    margin-bottom: 2px;

    .monospace {
      font-weight: normal;
    }
  }

  .snippet-info {
    color: #888;
    font-size: 13px;
    line-height: 24px;

    a {
      color: #888;
    }
  }
}

.snippet-details {
  .page-title {
    margin-top: -15px;
    padding: 10px 0;
    margin-bottom: 0;
    color: #5c5d5e;
    font-size: 16px;

    .author {
      color: #5c5d5e;
    }

    .snippet-id {
      color: #5c5d5e;
    }
    .btn {
      padding: 10px $gl-padding;
    }
  }

  .snippet-title {
    margin: 0;
    font-size: 23px;
    color: #313236;
  }

  @media (max-width: $screen-md-max) {
    .new-snippet-link {
      display: none;
    }
  }

  @media (max-width: $screen-sm-max) {
    .creator,
    .page-title .btn-close {
      display: none;
    }
  }
}

.snippet-box {
  @include border-radius(2px);

  display: inline-block;
  padding: 10px $gl-padding;
  font-weight: normal;
  margin-right: 10px;
  font-size: $gl-font-size;

  &.snippet-box-locked {
    background: $gl-gray;
    color: #FFF;
  }
}