-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added issue image picker. Closes #20.
- Loading branch information
bkraul
committed
Jul 4, 2020
1 parent
9beac09
commit 6f2d611
Showing
8 changed files
with
369 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,116 @@ | ||
.bbcodeplus.pre { | ||
border: 1px solid silver; | ||
margin: 0 0 1.5em 0; | ||
overflow: auto; | ||
padding-left: 10px; | ||
border-radius: 4px; | ||
border: 1px solid silver; | ||
margin: 0 0 1.5em 0; | ||
overflow: auto; | ||
padding-left: 10px; | ||
border-radius: 4px; | ||
} | ||
|
||
.bbcodeplus.code span { | ||
font-family: Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace; | ||
font-size: 1em; | ||
font-family: Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace; | ||
font-size: 1em; | ||
} | ||
|
||
.bbcodeplus.table td { | ||
border: 0 !important; | ||
border: 0 !important; | ||
} | ||
|
||
.bbcodeplus.table-bordered td, .bbcodeplus.table-bordered tr, .bbcodeplus.table-bordered th { | ||
border: 1px solid silver !important; | ||
border: 1px solid silver !important; | ||
} | ||
|
||
.bbcodeplus.blockquote { | ||
border: solid #c0c0c0 1px; | ||
border-left: solid #c0c0c0 5px; | ||
padding: 10px; | ||
font-size: 1em; | ||
background-color: #f5f2f0; | ||
border-radius: 4px; | ||
border: solid #c0c0c0 1px; | ||
border-left: solid #c0c0c0 5px; | ||
padding: 10px; | ||
font-size: 1em; | ||
background-color: #f5f2f0; | ||
border-radius: 4px; | ||
} | ||
|
||
.bbcodeplus.modal { | ||
display: none; | ||
position: fixed; | ||
z-index: 1030; | ||
padding-top: 100px; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow: auto; | ||
background-color: rgb(0,0,0); | ||
background-color: rgba(0,0,0,0.4); | ||
} | ||
|
||
.bbcodeplus.modal-close { | ||
color: white; | ||
} | ||
|
||
.bbcodeplus.modal-close:hover, | ||
.bbcodeplus.modal-close:focus { | ||
color: #000; | ||
text-decoration: none; | ||
cursor: pointer; | ||
} | ||
|
||
.bbcodeplus.modal-content { | ||
position: relative; | ||
background-color: #fefefe; | ||
margin: auto; | ||
padding: 0; | ||
border: 1px solid #888; | ||
width: 50%; | ||
max-height: 50%px; | ||
overflow: auto; | ||
z-index: 1031; | ||
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19); | ||
animation-name: animatetop; | ||
animation-duration: 0.4s | ||
} | ||
|
||
.bbcodeplus.image-picker ul { | ||
margin: 1em 0; | ||
padding: 0; | ||
list-style: none; | ||
display: grid; | ||
grid: auto-flow / repeat(auto-fit, minmax(100px, 1fr)); | ||
align-items: baseline; | ||
grid-gap: 10px; | ||
gap: 10px; | ||
} | ||
|
||
.bbcodeplus.image-picker li { | ||
width: 100px; | ||
height: 100px; | ||
min-height: 100px; | ||
display: -moz-inline-stack; | ||
display: inline-block; | ||
vertical-align: middle; | ||
margin: 5px; | ||
zoom: 1; | ||
*display: inline; | ||
} | ||
|
||
.bbcodeplus.image-picker li img { | ||
width: 100%; | ||
padding: 5px; | ||
border: 1px solid rgba(221,221,221,1); | ||
border-radius: 5px; | ||
max-width: 100%; | ||
} | ||
|
||
.bbcodeplus.image-picker li img:hover { | ||
filter: brightness(80%); | ||
background-color: rgba(221,221,221,1); | ||
} | ||
|
||
/* Add Animation */ | ||
@-webkit-keyframes animatetop { | ||
from {top:-300px; opacity:0} | ||
to {top:0; opacity:1} | ||
} | ||
|
||
@keyframes animatetop { | ||
from {top:-300px; opacity:0} | ||
to {top:0; opacity:1} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.