Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Project Page Project Page
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • m4lab_tv1
  • Project PageProject Page
  • Merge requests
  • !80

Optimize card appearance

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Koukofikis requested to merge MLAB-582 into testing 3 years ago
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Add card-portrait class Rearrange elements in card title Card title and body have fixed height

  • Loading
  • Loading
  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • testing (base)

and
  • latest version
    da1b16c7
    1 commit, 3 years ago

1 file
+ 27
- 6

    Preferences

    File browser
    Compare changes
views/DE/project/pagesList.pug
+ 27
- 6
  • View file @ da1b16c7

  • Edit in single-file editor

  • Open in Web IDE


@@ -11,6 +11,8 @@ html(lang="de")
@@ -11,6 +11,8 @@ html(lang="de")
.title-container {
.title-container {
position: relative;
position: relative;
color: white;
color: white;
 
height: 12rem;
 
overflow: hidden;
}
}
.card-title-bottom-left {
.card-title-bottom-left {
position: absolute;
position: absolute;
@@ -23,8 +25,26 @@ html(lang="de")
@@ -23,8 +25,26 @@ html(lang="de")
padding: 5px
padding: 5px
}
}
.card-img-top {
.card-img-top {
height: 15vw;
height: 100%;
object-fit: cover;
object-fit: contain;
 
position: absolute;
 
top: 0;
 
left: 0;
 
right: 0;
 
margin-left: 0;
 
margin-right: 0;
 
}
 
.card-img-bg {
 
background-size: cover;
 
filter: blur(30px);
 
width: 100%;
 
height: 100%;
 
}
 
.clamp-lines {
 
display: -webkit-box;
 
-webkit-line-clamp: 6;
 
-webkit-box-orient: vertical;
 
overflow: hidden;
}
}
body
body
div(class="container")
div(class="container")
@@ -50,11 +70,12 @@ html(lang="de")
@@ -50,11 +70,12 @@ html(lang="de")
| <div class="row">
| <div class="row">
for item in pages
for item in pages
div(class="card-deck py-4 col-sm")
div(class="card-deck py-4 col-sm")
div(class="card width_18" style="transform: rotate(0);")
div(class="card card-portrait" style="transform: rotate(0);")
div(class="title-container")
div(class="title-container")
h5(class="card-title-bottom-left") #{item.name}
div(class="card-img-bg" style=`background-image: url(${item.logo});`)
img(class="card-img-top", src=item.logo)
img(class="card-img-top", src=item.logo)
div(class="card-body")
h5(class="card-title-bottom-left") #{item.name}
 
div(class="card-body-fixed-height")
div(class="row")
div(class="row")
each key in item.keywords
each key in item.keywords
h6
h6
@@ -62,7 +83,7 @@ html(lang="de")
@@ -62,7 +83,7 @@ html(lang="de")
| &nbsp;
| &nbsp;
div(class="row")
div(class="row")
div(class="col-9")
div(class="col-9")
p(class="card-text") #{item.desc}
p(class="card-text clamp-lines") #{item.desc}
a(href=item.weburl, class="no_text_decoration stretched-link", target="_blank")
a(href=item.weburl, class="no_text_decoration stretched-link", target="_blank")
| </div>
| </div>
Assignee
Koukofikis's avatar
Koukofikis
Assign to
0 Reviewers
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
Lock merge request
Unlocked
1
1 participant
Koukofikis
Reference:
Source branch: MLAB-582

Menu

Explore Projects Groups Snippets

Dies ist die Gitlab-Instanz des Transferportals der Hochschule für Technik Stuttgart. Hier geht es zurück zum Portal