Skip to content

Commit 6a02c77

Browse files
committed
css fo rbuttons
1 parent 68a4e35 commit 6a02c77

File tree

3 files changed

+38
-20
lines changed

3 files changed

+38
-20
lines changed

static/base.css

+22-1
Original file line numberDiff line numberDiff line change
@@ -798,4 +798,25 @@ margin-top: 0px;
798798

799799
.bottom_inner_row {
800800
margin-left: -23px;
801-
}
801+
}
802+
803+
.btn-description {
804+
display: inline-block;
805+
font-size: 100%;
806+
}
807+
808+
.btn-bot {
809+
padding: 0;
810+
margin: 0;
811+
padding-left: 0.25rem;
812+
padding-right: 0.25rem;
813+
font-size: 80%;
814+
}
815+
816+
817+
@media only screen and (max-width: 992px) {
818+
.btn-description {
819+
display: none;
820+
}
821+
}
822+

templates/comments.html

+14-15
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ <h5 id='single-comment'> you are viewing a single comment - <a style='text-decor
140140
<selftext class="comment-text comment-text-text safe-markup-text">{{ comment.new_text|safe }}</selftext>
141141
</div>
142142
{% if session['user'] not in post.mods %}
143-
<div class="row post-row comment-bottom" style='margin-bottom: 1rem!important;'>
143+
<div class="row post-row comment-bottom" style='margin-bottom: 1rem!important; display: inline; width: 100%;'>
144144
{% else %}
145-
<div class="row post-row comment-bottom">
145+
<div class="row post-row comment-bottom" style='display: inline; width: 100%;'>
146146
{% endif %}
147147

148-
<div style='display: inline-block;' class="inner-div comment-voting" vote-obj-id="{{ comment.id }}" vote-obj-type="comment" vote-userid="session['user_id']" has_voted="{{ comment.has_voted }}">
148+
<div style='display: inline;' class="inner-div comment-voting" vote-obj-id="{{ comment.id }}" vote-obj-type="comment" vote-userid="session['user_id']" has_voted="{{ comment.has_voted }}">
149149
{% if comment.has_voted == 1 %}
150150
<a href="javascript:void(0)"><i style="color: orange;"class="fa fa-arrow-up"></i></a>
151151
{% else %}
@@ -158,20 +158,24 @@ <h5 id='single-comment'> you are viewing a single comment - <a style='text-decor
158158
<a href="javascript:void(0)"><i class="fa fa-arrow-down"></i></a>
159159
{% endif %}
160160
</div>
161-
<div class="inner-div applyinline" stlye='display: inline-block;'>
161+
<div class="inner-div applyinline" style="display: inline;">
162162
{% if post.locked == False %}
163163
<a class="comment-link comment-reply" href="javascript:void(0)" comment_id="{{ comment.id }}">reply</a>
164164
{% endif %}
165165

166+
{% if loop.depth0 == 4 and value|length > 0 %}
167+
<a class="comment-link" href="{{ config.URL }}/i/{{ post.sub }}/{{ post.id }}/{{ post.inurl_title }}/{{ comment.id }}/"><button class = 'btn-sm btn btn-success comment-more'>
168+
more comments <i class='fa fa-arrow-circle-right '></i>
169+
</button></a>
170+
{% endif %}
166171

167172

168-
169-
<div class='commoptions'>
173+
<div class='commoptions' style='float: right; margin: 0.5rem;'>
170174
{% if session['username'] == comment.author %}
171175
<!-- USER MENU -->
172176
<div class="dropdown bottom-post-dropdown">
173-
<button class="btn btn-secondary btn-sm bottom-dropdown comment-button-dropdown" type="button" id="dropdownMenuButton2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
174-
<i class='fa fa-user'></i>
177+
<button class="btn btn-secondary btn-bot btn-sm bottom-dropdown comment-button-dropdown" type="button" id="dropdownMenuButton2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
178+
<i class='fa fa-user'></i> <h6 class='btn-description'>user</h6>
175179
</button>
176180
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
177181
{% if session['username'] == post.author %}
@@ -190,8 +194,8 @@ <h5 id='single-comment'> you are viewing a single comment - <a style='text-decor
190194

191195
{% if session['username'] in post.mods or session['admin'] == True %}
192196
<div class="dropdown bottom-post-dropdown">
193-
<button class="btn btn-info btn-sm bottom-dropdown comment-button-dropdown" type="button" id="dropdownMenuButton3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
194-
<i class='fa fa-gavel'></i>
197+
<button class="btn btn-info btn-sm btn-bot bottom-dropdown comment-button-dropdown" type="button" id="dropdownMenuButton3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
198+
<i class='fa fa-gavel'><h6 class='btn-description'>mod</h6> </i>
195199
</button>
196200
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
197201
{% if session['username'] != comment.author %}
@@ -201,11 +205,6 @@ <h5 id='single-comment'> you are viewing a single comment - <a style='text-decor
201205
</div>
202206
</div>
203207
{% endif %}
204-
{% if loop.depth0 == 4 and value|length > 0 %}
205-
<a class="comment-link" href="{{ config.URL }}/i/{{ post.sub }}/{{ post.id }}/{{ post.inurl_title }}/{{ comment.id }}/"><button class = 'btn-sm btn btn-success comment-more'>
206-
more comments <i class='fa fa-arrow-circle-right '></i>
207-
</button></a>
208-
{% endif %}
209208

210209

211210

templates/sub_post.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@
178178
{% if session['username'] == post.author %}
179179
<!-- USER MENU -->
180180
<div class="dropdown bottom-post-dropdown">
181-
<button class="btn btn-secondary btn-sm bottom-dropdown" type="button" id="dropdownMenuButton2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
182-
<i class='fa fa-pencil'></i>
181+
<button class="btn btn-secondary btn-sm bottom-dropdown btn-bot" type="button" id="dropdownMenuButton2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class='fa fa-pencil'></i> <h6 class='btn-description'>user</h6>
183182
</button>
184183
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
185184
{% if session['username'] == post.author %}
@@ -203,8 +202,7 @@
203202
<!-- mod menu -->
204203
{% if session['username'] in post.mods or session['admin'] == True %}
205204
<div class="dropdown bottom-post-dropdown">
206-
<button class="btn btn-info btn-sm bottom-dropdown" type="button" id="dropdownMenuButton2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
207-
<i class='fa fa-gavel'></i> </button>
205+
<button class="btn btn-info btn-sm bottom-dropdown btn-bot" type="button" id="dropdownMenuButton2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class='fa fa-gavel' style='display: inline-block;'></i> <h6 class='btn-description'>mod</h6> </button>
208206
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton2">
209207
{% if session['username'] != post.author %}
210208
{% if post.nsfw == False and post.author %}

0 commit comments

Comments
 (0)