document style refactoring: doc -> document, moving to ./components
This commit is contained in:
1 parent
adef63d64f
commit
43ab4a66f8
5 files changed
+21
-17
No files matched your search
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,23 +16,8 @@
|
|||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.doc {
|
|
||||||
margin: 0 1.2em 2.5em;
|
|
||||||
|
|
||||||
p {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
img {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 31.25em) {
|
@media (max-width: 31.25em) {
|
||||||
.documents-block {
|
.documents-block {
|
||||||
margin: 1em 0 0;
|
margin: 1em 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.doc {
|
|
||||||
margin: 0 0 2em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1 +1,2 @@
|
|||||||
@import "./components/gallery-item";
|
@import "./components/gallery-item";
|
||||||
|
@import "./components/document";
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="doc">
|
<div class="document">
|
||||||
<a href="{{$ctrl.document.thumbs.original.url}}" target="_blank">
|
<a href="{{$ctrl.document.thumbs.original.url}}" target="_blank">
|
||||||
<img ng-src="{{$ctrl.document.thumbs.medium.url}}">
|
<img ng-src="{{$ctrl.document.thumbs.medium.url}}">
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="doc">
|
<div class="document">
|
||||||
<a href="{{$ctrl.document.url}}" target="_blank" class="invisible">
|
<a href="{{$ctrl.document.url}}" target="_blank" class="invisible">
|
||||||
<img ng-src="{{$ctrl.document.preview}}">
|
<img ng-src="{{$ctrl.document.preview}}">
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in new issue
Block a user