Fix tag CSS

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
hossainemruz 2021-03-13 21:36:06 +06:00
parent 45bbcf422b
commit ede42323dd
6 changed files with 55 additions and 29 deletions

View file

@ -38,7 +38,7 @@ projects:
repo: https://github.com/tensorflow/tensorflow repo: https://github.com/tensorflow/tensorflow
#url: "" #url: ""
summary: An Open Source Machine Learning Framework for Everyone. summary: An Open Source Machine Learning Framework for Everyone.
tags: ["professional", "machine-learning","academic"] tags: ["professional", "machine-learning"]
- name: A sample academic paper - name: A sample academic paper
role: Team Lead role: Team Lead

View file

@ -37,7 +37,7 @@ projects:
repo: https://github.com/tensorflow/tensorflow repo: https://github.com/tensorflow/tensorflow
#url: "" #url: ""
summary: An Open Source Machine Learning Framework for Everyone. summary: An Open Source Machine Learning Framework for Everyone.
tags: ["professional", "machine-learning","academic"] tags: ["professional", "machine-learning"]
- name: A sample academic paper - name: A sample academic paper
role: Team Lead role: Team Lead

View file

@ -37,7 +37,7 @@ projects:
repo: https://github.com/tensorflow/tensorflow repo: https://github.com/tensorflow/tensorflow
#url: "" #url: ""
summary: An Open Source Machine Learning Framework for Everyone. summary: An Open Source Machine Learning Framework for Everyone.
tags: ["professional", "machine-learning","academic"] tags: ["professional", "machine-learning"]
- name: A sample academic paper - name: A sample academic paper
role: Team Lead role: Team Lead

View file

@ -37,7 +37,7 @@ projects:
repo: https://github.com/tensorflow/tensorflow repo: https://github.com/tensorflow/tensorflow
#url: "" #url: ""
summary: An Open Source Machine Learning Framework for Everyone. summary: An Open Source Machine Learning Framework for Everyone.
tags: ["professional", "machine-learning","academic"] tags: ["professional", "machine-learning"]
- name: A sample academic paper - name: A sample academic paper
role: Team Lead role: Team Lead

View file

@ -27,17 +27,20 @@
<div class="card-body text-justify pt-1 pb-1"> <div class="card-body text-justify pt-1 pb-1">
<p>{{ .summary | markdownify }}</p> <p>{{ .summary | markdownify }}</p>
<!-- Display project card technology tags --> <!-- Display project card technology tags -->
<span> <div class="project-card-footer">
{{ if .tags }}
<div class="project-tags-holder">
{{ range $index,$tag:= .tags }} {{ range $index,$tag:= .tags }}
<a target="#"> <span class="badge btn-info">
{{ $tag }} {{ $tag }}
</a>
{{ end }}
</span> </span>
<span class="float-right"> {{ end }}
</div>
{{ end }}
<div class="project-btn-holder">
{{ if .repo }} {{ if .repo }}
<a <a
class="github-button-inactive" class="github-button-inactive project-btn"
href="{{ .repo }}" href="{{ .repo }}"
data-icon="octicon-standard" data-icon="octicon-standard"
data-show-count="true" data-show-count="true"
@ -45,14 +48,17 @@
>Star</a >Star</a
> >
{{ else if .url }} {{ else if .url }}
<span>
<a <a
class="btn btn-outline-info btn-sm mb-2" class="btn btn-outline-info btn-sm"
href="{{ .url }}" href="{{ .url }}"
target="#" target="#"
>Details</a >Details</a
> >
{{ end }}
</span> </span>
{{ end }}
</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -29,6 +29,26 @@
padding: 1rem !important; padding: 1rem !important;
} }
.project-card-footer {
display: flex;
}
.project-tags-holder {
width: 70%;
}
.project-btn-holder {
width: 30%;
display: flex;
justify-content: flex-end;
flex-direction: column;
}
.project-btn-holder span {
justify-content: flex-end;
display: flex;
}
/* ============= Device specific fixes ======= */ /* ============= Device specific fixes ======= */
/* Large screens such as TV */ /* Large screens such as TV */