Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8c98dde6
authored
Dec 02, 2016
by
Sebastián Collado
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Leyenda en pictogramas aplicada en AngularJS y CSS
parent
2de3ba70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
sails/src/assets/scripts/modules/student/views/collections.html
sails/src/assets/styles/main.css
sails/src/assets/scripts/modules/student/views/collections.html
View file @
8c98dde6
...
...
@@ -37,6 +37,7 @@
popover-trigger=
"mouseenter"
ng-init=
"colIndex = $index"
ng-repeat=
"studentPicto in studentPictoRow track by $index"
>
<div
class=
"picto-description"
>
{{ studentData.attributes.legend?studentPicto.expression.text:'' }}
</div>
<img
src=
"/app/img/redcross.png"
class=
"disabled"
...
...
@@ -108,6 +109,7 @@
ng-repeat=
"studentPicto in studentPictoRow track by $index"
popover=
"{{studentPicto.attributes.expression==null ? studentPicto.expression.text : studentPicto.attributes.expression}}"
popover-trigger=
"mouseenter"
>
<div
class=
"picto-description"
>
{{ studentData.attributes.legend?studentPicto.expression.text:'' }}
</div>
<img
src=
"/app/img/redcross.png"
class=
"disabled"
...
...
@@ -167,6 +169,7 @@
popover-trigger=
"mouseenter"
ng-init=
"colIndex = $index"
ng-repeat=
"studentPicto in studentPictoRow track by $index"
>
<div
class=
"picto-description"
>
{{ studentData.attributes.legend?studentPicto.expression.text:'' }}
</div>
<img
src=
"/app/img/redcross.png"
class=
"disabled"
...
...
sails/src/assets/styles/main.css
View file @
8c98dde6
...
...
@@ -451,6 +451,21 @@ textarea.editable{
.picto
.picto_options
.picto_minus
{
position
:
absolute
;
top
:
2px
;
right
:
2px
;
}
/* Text above picto */
.picto-description
{
position
:
absolute
;
bottom
:
0px
;
text-align
:
center
;
width
:
100%
;
background-color
:
rgba
(
1
,
1
,
1
,
0.50
);
color
:
white
;
margin-left
:
-2px
;
font-weight
:
600
;
text-transform
:
uppercase
;
font-size
:
12px
;
word-wrap
:
break-word
;
}
/* In addpicto */
#collections
{
height
:
400px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment