document style refactoring: doc -> document, moving to ./components

This commit is contained in:
tmshv committed 2016-02-22 00:16:07 +03:00
1 parent adef63d64f
commit 43ab4a66f8
5 files changed
+22 -18

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
@import "../variables";
.document {
margin: 0 1.2em $single-margin;
p {
text-align: center;
}
img {
max-width: 100%;
}
}
@media (max-width: $mobile-width) {
.document {
margin: 0 0 $single-margin;
}
}
-15
View File
@@ -16,23 +16,8 @@
align-items: baseline;
}
.doc {
margin: 0 1.2em 2.5em;
p {
text-align: center;
}
img {
max-width: 100%;
}
}
@media (max-width: 31.25em) {
.documents-block {
margin: 1em 0 0;
}
.doc {
margin: 0 0 2em;
}
}
+2 -1
View File
@@ -1 +1,2 @@
@import "./components/gallery-item";
@import "./components/gallery-item";
@import "./components/document";
+1 -1
View File
@@ -1,4 +1,4 @@
<div class="doc">
<div class="document">
<a href="{{$ctrl.document.thumbs.original.url}}" target="_blank">
<img ng-src="{{$ctrl.document.thumbs.medium.url}}">
</a>
+1 -1
View File
@@ -1,4 +1,4 @@
<div class="doc">
<div class="document">
<a href="{{$ctrl.document.url}}" target="_blank" class="invisible">
<img ng-src="{{$ctrl.document.preview}}">
</a>