Skip to content

Commit e048574

Browse files
octavioamuthelostone-mc
authored andcommitted
shared modal styles conflict (gitcoinco#5625)
1 parent 5a440c2 commit e048574

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

app/kudos/templates/share.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load kudos_extras %}
22
{% load i18n static %}
33
<style>
4-
.modal {
4+
#share-modal.modal {
55
display: none;
66
position: fixed;
77
z-index: 1025;
@@ -15,7 +15,7 @@
1515
overflow-y: auto;
1616
}
1717

18-
.modal-content {
18+
#share-modal .modal-content {
1919
background-color: #fefefe;
2020
margin: 15% auto;
2121
padding: 20px;
@@ -29,7 +29,7 @@
2929
cursor: pointer;
3030
}
3131

32-
.modal #kudos-image {
32+
#share-modal .kudos-image {
3333
max-width: 12rem;
3434
}
3535

@@ -60,22 +60,22 @@
6060

6161
@media (max-width: 991.98px) {
6262

63-
.modal-content {
63+
#share-modal .modal-content {
6464
width: 80%;
6565
}
6666

6767
#share-modal p {
6868
text-align: center;
6969
}
7070

71-
#share-modal #kudos-image {
71+
#share-modal .kudos-image {
7272
margin: auto;
7373
}
7474
}
7575

7676
@media (max-width: 767.98px) {
7777

78-
.modal-content {
78+
#share-modal .modal-content {
7979
width: 100%;
8080
}
8181

@@ -102,7 +102,7 @@
102102
<div class="col-12 text-center">
103103
<h1 class="font-title-lg mb-4">{% trans "Share" %} Kudos!</h1>
104104
</div>
105-
<div id="kudos-image" class="col-12 offset-lg-4 col-lg-4">
105+
<div id="kudos-image" class="kudos-image col-12 offset-lg-4 col-lg-4">
106106
<img src="{{kudos.static_image}}" alt="{{ kudos.name }}" class="w-100">
107107
</div>
108108
<div class="col-12 col-lg-4 my-auto">
@@ -118,7 +118,7 @@ <h1 class="font-title-lg mb-4">{% trans "Share" %} Kudos!</h1>
118118
<div class="col-12 my-4 text-center">
119119
<input class="form__input"type="text" value="{{ request.META.HTTP_HOST }}{% url 'kudos_details' kudos.id kudos.name %}" id="shareLink" readonly>
120120
<button class="btn btn-gc-blue button__small font-body" id="copyLink">
121-
<i data-toggle="tooltip" title="" data-html="true"
121+
<i data-toggle="tooltip" title="" data-html="true"
122122
data-original-title="<span class='title-tooltip text-center'>{% trans 'Click To Copy' %}</span>"
123123
data-template='<div class="tooltip-kudos tooltip-share" role="tooltip"><div class="tooltip-inner"></div></div>' class="text-color_blue">
124124
{% trans "Copy Link" %}
@@ -134,4 +134,4 @@ <h1 class="font-title-lg mb-4">{% trans "Share" %} Kudos!</h1>
134134
data-size="large"><i class="fab fa-facebook mr-2"></i>{% trans "Share on" %} Facebook</a>
135135
</div>
136136
</div>
137-
</div>
137+
</div>

0 commit comments

Comments
 (0)