Blame view

resources/styles/articles.less 1.43 KB
e77200db5   nologostudio.ru   Initial commit
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
  @import (reference) '~app/web/resources/styles/main.less';
  
  .home-articles {
  	padding-bottom: 15px;
  }
  
  .home-articles a {
      color: inherit;
  }
  
  .home-articles-header {
  	height: 58px;
  	line-height: 58px;
  	background-color: #f1f3f5;
  	text-align: center;
  	font-size: 28px;
  	color: #333;
  }
  
  .home-article {
  	font-size: 14px;
  	color: #111;
  	margin-top: 20px;
  }
  
  .home-article-img {
  	width: 100%;
  	display: block;
  }
  
  .home-article-title {
  	height: 40px;
  }
  
  .articles-index-title {
  	font-weight: 400;
  	font-size: 20px;
  }
  
  .articles-index-subtitle {
  	font-size: 16px;
  	color: #777;
  }
  
  .card--article {
  	.card-body {
  		background: #fff;
  		margin: -25px 0 0;
  		position: relative;
  	}
  
  	.card-title {
  		height: 80px;
  		padding: 10px 15px;
  		position: relative;
  		font-size: 16px;
  		white-space: normal;
  	}
  
  	.card-image {
  		border-radius: 4px;
      	overflow: hidden;
  
  		a {
  			position: absolute;
  			top: 0;
  			left: 0;
  			width: 100%;
  			height: 100%;
  		}
  
  		img {
  			object-fit: cover;
  			height: 100%;
  		}
  	}
  
  	.card-category {		
  		padding: 7px 15px;
  	}
  }
  
  @media @md-up {
  	.card--article:nth-child(5n+1),
  	.card--article:nth-child(5n+2) {
  		width: 50%;
  
  		.card-title {
  			height: 60px;
  		}
  	}
  }
  
  .article-wrap {
  	max-width: 800px;
      margin: 0 auto;
      font-family: "Source Sans Pro";
  }
  
  .article-title {
  	font-size: 22px;
  	margin-bottom: 0.8em;
  
  	@media @sm-up {
  		font-size: 32px;
  	}
  }
  
  .article-body {
  	font-size: 14px;
  	
  	@media @sm-up {
  		font-size: 18px;
  	}
  }