Skip to content

Commit

Permalink
arreglo detalles layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mpvaldez committed Dec 7, 2023
1 parent 27420b8 commit 1855b35
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 36 deletions.
3 changes: 3 additions & 0 deletions lib/boot/global.styl
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,6 @@ a:hover, a:focus, a:active

.btn-outline-success:hover
background-color: $success-color

.btn-rounded
border-radius: 50000px!important;
2 changes: 1 addition & 1 deletion lib/frontend/site/home-forum/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default class HomeForum extends Component {
<h1>{forum.title}</h1>
{ (forum.extra.contentType === 'ejes' || forum.extra.contentType === undefined) &&
<a
className='btn btn-primary'
className='btn btn-primary btn-rounded'
onClick={this.handleScroll} >
Elegí un eje y participá
</a>
Expand Down
12 changes: 6 additions & 6 deletions lib/frontend/site/home-multiforum/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class HomeMultiForum extends Component {
<br />
<h6 className="skyblue fw-bolder">¿Cómo podes participar?</h6>
</div>
<div className='section-icons col-md-10 offset-md-1'>
<div className='section-icons col-lg-10 offset-lg-1'>
<div className='row'>
<div className='col-md-4'>
<div className="section-icon my-2">
Expand Down Expand Up @@ -175,7 +175,7 @@ class HomeMultiForum extends Component {

<div className="filter-container content-center">
<div className="btn-group btn-group-sm dropdown-element" role="group" aria-label="Filtros">
<button
{/* <button
className={`btn dropbtn ${activeFilter === 'byDate' ? 'btn-active' : 'btn-secondary'}`}
onClick={this.handleClick.bind(this, 'byDate')}
>
Expand All @@ -189,22 +189,22 @@ class HomeMultiForum extends Component {
return 'Finalizadas'
}
})()}
</button>
</button> */}
<ul className='dropdown-content'>
<li
className={`btn btn-item-dropdown ${activeFilter === 'byDate' ? 'btn-active' : 'btn-secondary'}`}
className={`btn btn-item-dropdown mx-1 ${activeFilter === 'byDate' ? 'btn-active' : 'btn-secondary'}`}
onClick={this.handleClick.bind(this, 'byDate')}
>
Nuevas
</li>
<li
className={`btn btn-item-dropdown ${activeFilter === 'byPopular' ? 'btn-active' : 'btn-secondary'}`}
className={`btn btn-item-dropdown mx-1 ${activeFilter === 'byPopular' ? 'btn-active' : 'btn-secondary'}`}
onClick={this.handleClick.bind(this, 'byPopular')}
>
Mayor Participación
</li>
<li
className={`btn btn-item-dropdown ${activeFilter === 'byClosed' ? 'btn-active' : 'btn-secondary'}`}
className={`btn btn-item-dropdown mx-1 ${activeFilter === 'byClosed' ? 'btn-active' : 'btn-secondary'}`}
onClick={this.handleClick.bind(this, 'byClosed')}
>
Finalizadas
Expand Down
32 changes: 3 additions & 29 deletions lib/frontend/site/home-multiforum/styles.styl
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@
.section-icons
font-weight:600
margin-top:20px
@media (max-width: 760px)
margin-left:6%
@media (max-width: 460px)
margin-left:10px
.section-icon
display: flex;
padding: 20px 20px;
Expand Down Expand Up @@ -153,47 +149,24 @@
min-width:130px
border-radius: 5000px;
font-size:13px !important
padding: 10px 40px 10px 40px !important
padding: 10px!important

.btn-secondary
min-width:200px
border: 1px solid #000;
margin: 0 10px 0 10px
background: transparent

.btn-active
min-width:200px
text-underline: none
background-color: $secondary-color
margin: 0 10px 0 10px
color: $main-color
&:focus
outline: none

.dropbtn
width:150px
font-size:16px !important
@media (min-width: 701px)
display:none

.dropdown-element:hover .dropdown-content
@media (max-width: 700px)
display: block

.dropdown-content
@media (max-width: 700px)
li
display:block
margin-bottom:0

.dropdown-content
@media (max-width: 700px)
display: none
position: absolute
z-index: 1
left: -14px
top: 36px

.dropdown-element
@media (max-width: 700px)
position: relative
Expand All @@ -217,4 +190,5 @@
background-position: center
background-repeat: no-repeat
// background-repeat: no-repeat
background-size: cover
background-size: cover

0 comments on commit 1855b35

Please sign in to comment.