Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style inline images #19

Merged
merged 3 commits into from Jul 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.html
Expand Up @@ -89,6 +89,10 @@ <h2>Table of Contents</h2>
<div id="outline-container-orgheadline118" class="outline-2">
<h2 id="orgheadline118"><span class="section-number-2">1</span> JapanTrip</h2>
<div class="outline-text-2" id="text-1">
<div class="figure">
<p><a href="https://dl.dropboxusercontent.com/u/8178/4.jpg"><img src="https://dl.dropboxusercontent.com/u/8178/4.jpg" alt="4.jpg" /></a>
</p>
</div>
</div>
<div id="outline-container-orgheadline9" class="outline-3">
<h3 id="orgheadline9"><span class="section-number-3">1.1</span> Itinerary</h3>
Expand Down
13 changes: 13 additions & 0 deletions src/styles/image.css
@@ -0,0 +1,13 @@
/*
==============================================================================
Images
==============================================================================
*/

.figure a {
background: none !important;
}

img {
width: 100%;
}
1 change: 1 addition & 0 deletions src/styles/index.css
Expand Up @@ -23,6 +23,7 @@
@import './selection';
@import './strike.css';
@import './table.css';
@import './image.css';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caffo Maybe rename it to inline-image?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't imagine any other image type that would need styles. Any reason to not generalize? 🙇

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caffo Alright, ship it.


/* Custom */
@import './container.css';
Expand Down