studydocList.less 2.54 KB
Newer Older
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
@import './colors.less';

.studydoc-documents {
  width: calc(100% + 8px);
  position: relative;
  left: -4px;

  a {
    display: inline-block;
    color: #000;
    border-radius: 4px;
    padding: 4px;

    &:not(:last-child) {
      margin-right: 1em;
    }

    &:hover {
      background-color: @color-grey;
    }
  }

  span {
    display: inline-block;
    position: relative;
    bottom: -2px;
  }

  span.name {
    margin-left: .25em;
  }

  span.size {
    color: @color-dark-grey;
    margin-left: 1em;
  }
}

Sandro Lutz's avatar
Sandro Lutz committed
39
40
41
42
43
44
45
46
.studydoc-header {
  padding: 1em;

  .title {
    display: block;
    width: 100%;
    font-size: 1em;

47
48
    h3 {
      font-size: 1.2em;
Sandro Lutz's avatar
Sandro Lutz committed
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
      margin: 0;
      display: inline-block;

      span:before {
        display: inline-block;
        content: '\2013';
        padding: 0 .5em;
      }
    }

    span {
      font-weight: normal;
    }
  }

  .properties {
    width: 100%;
    margin-top: 1em;
  }

  .property {
    display: inline-block;
    padding-bottom: 1em;

73
74
75
76
    @media @mobile {
      padding-bottom: .25em;
    }

Sandro Lutz's avatar
Sandro Lutz committed
77
78
79
80
    &:after {
      content: '/';
      color: @color-red;
      margin: 0 1em;
81
82
83
84
85
86

      @media @mobile {
        content: ',';
        color: #000;
        margin: 0 .5em 0 0;
      }
Sandro Lutz's avatar
Sandro Lutz committed
87
88
89
90
91
92
93
94
95
96
97
98
99
    }

    .name:after {
      content: ':';
      padding-right: .5em;
    }

    &:last-of-type:after {
      content: '';
      margin: 0;
    }
  }

100
101
102
  .studydoc-documents {
    @media @mobile, @tablet {
      display: none;
Sandro Lutz's avatar
Sandro Lutz committed
103
    }
104
105
  }
}
Sandro Lutz's avatar
Sandro Lutz committed
106

107
108
109
110
.studydoc-content .studydoc-documents {
  display: none;
  padding: 16px;
  background-color: @color-grey;
Sandro Lutz's avatar
Sandro Lutz committed
111

112
113
  @media @mobile, @tablet {
    display: block;
Sandro Lutz's avatar
Sandro Lutz committed
114
115
116
  }
}

Cliff Li's avatar
Cliff Li committed
117
#studydoc-list {
parethe's avatar
parethe committed
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
  #head-style {
    text-align: right;
  }

  #row-style {
    height: 2em;
    background-color: #fdfdfd;
    border: 1px solid @color-grey;

    &:hover {
      background-color: #f5f5f5;
    }
  }

  h2 {
    display: inline;
    text-align: center;
  }

  .flex-container {
    display: flex;
    flex-wrap: nowrap;
  }

  .flex-container > div {
    padding: 0 5px 5px 0;
    text-align: left;
  }

Sandro Lutz's avatar
Sandro Lutz committed
147
148
  div.list-item {
    display: grid;
parethe's avatar
parethe committed
149
150
151
    grid-template-columns: auto 25% 15%;
    grid-row-gap: .5em;
    padding: .5em;
Sandro Lutz's avatar
Sandro Lutz committed
152
153
154

    &:first-of-type {
      font-weight: bold;
parethe's avatar
parethe committed
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
      border-bottom: solid 2px #000;
    }

    #title-style {
      margin-top: auto;
      margin-bottom: auto;
    }

    #author-style {
      margin-top: auto;
      margin-bottom: auto;
    }

    #course_year-style {
      margin-top: auto;
      margin-bottom: auto;
      text-align: right;
Elias Asikainen's avatar
Elias Asikainen committed
172
    }
Sandro Lutz's avatar
Sandro Lutz committed
173
  }
parethe's avatar
parethe committed
174
175
176
177

  div.list-style {
    background-color: #808080;
  }
178
}