Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container - Container-fluid Class (proposal) #46

Closed
shaan1974 opened this issue Mar 23, 2021 · 1 comment
Closed

Container - Container-fluid Class (proposal) #46

shaan1974 opened this issue Mar 23, 2021 · 1 comment
Labels
discussion Item needs to be discussed by core devs enhancement New feature or request
Milestone

Comments

@shaan1974
Copy link

Hello as far i see, primeflex don't have a "container" and "container-fluid" class as "Bootstrap" or "Bulma".

Is it possible to integrated it ?

Here below a quick implementation to suit to my need. But it could be written more elegantly :)

.p-container-fluid
{
width:100%;
}
.p-container
{
margin: auto !important;
}
@media (min-width: 1200px) {
.p-container
{
max-width: 1140px;
width: 1140px;
}
}
@media screen and (min-width: 992px) and (max-width: 1200px) {
.p-container
{
max-width: 960px;
width: 960px;
}
}
@media screen and (min-width: 768px) and (max-width: 992px) {
.p-container
{
max-width: 720px;
width: 720px;
}
}
@media screen and (min-width: 576px) and (max-width: 768px) {
.p-container
{
max-width: 540px;
width: 540px;
}
}
@media screen and (max-width: 576px) {
.p-container
{
max-width: 95%;
width: 95%;
}
}
.p-container-sm
{
margin: auto !important;
}
@media (min-width: 1200px) {
.p-container-sm
{
max-width: 1140px;
width: 1140px;
}
}
@media screen and (min-width: 992px) and (max-width: 1200px) {
.p-container-sm
{
max-width: 960px;
width: 960px;
}
}
@media screen and (min-width: 768px) and (max-width: 992px) {
.p-container-sm
{
max-width: 720px;
width: 720px;
}
}
@media screen and (min-width: 576px) and (max-width: 768px) {
.p-container-sm
{
max-width: 540px;
width: 540px;
}
}
@media screen and (max-width: 576px) {
.p-container-sm
{
max-width: 95%;
width: 95%;
}
}
.p-container-md
{
margin: auto !important;
}
@media (min-width: 1200px) {
.p-container-md
{
max-width: 1140px;
width: 1140px;
}
}
@media screen and (min-width: 992px) and (max-width: 1200px) {
.p-container-md
{
max-width: 960px;
width: 960px;
}
}
@media screen and (min-width: 768px) and (max-width: 992px) {
.p-container-md
{
max-width: 720px;
width: 720px;
}
}
@media screen and (min-width: 576px) and (max-width: 768px) {
.p-container-md
{
max-width: 95%;
width: 95%;
}
}
@media screen and (max-width: 576px) {
.p-container-md
{
max-width: 95%;
width: 95%;
}
}
.p-container-lg
{
margin: auto !important;
}
@media (min-width: 1200px) {
.p-container-lg
{
max-width: 1140px;
width: 1140px;
}
}
@media screen and (min-width: 992px) and (max-width: 1200px) {
.p-container-lg
{
max-width: 960px;
width: 960px;
}
}
@media screen and (min-width: 768px) and (max-width: 992px) {
.p-container-lg
{
max-width: 95%;
width: 95%;
}
}
@media screen and (min-width: 576px) and (max-width: 768px) {
.p-container-lg
{
max-width: 95%;
width: 95%;
}
}
@media screen and (max-width: 576px) {
.p-container-lg
{
max-width: 95%;
width: 95%;
}
}
.p-container-xl
{
margin: auto !important;
}
@media (min-width: 1200px) {
.p-container-xl
{
max-width: 1140px;
width: 1140px;
}
}
@media screen and (min-width: 992px) and (max-width: 1200px) {
.p-container-xl
{
max-width: 95%;
width: 95%;
}
}
@media screen and (min-width: 768px) and (max-width: 992px) {
.p-container-xl
{
max-width: 95%;
width: 95%;
}
}
@media screen and (min-width: 576px) and (max-width: 768px) {
.p-container-xl
{
max-width: 95%;
width: 95%;
}
}
@media screen and (max-width: 576px) {
.p-container-xl
{
max-width: 95%;
width: 95%;
}
}

@mertsincan mertsincan added discussion Item needs to be discussed by core devs enhancement New feature or request labels Apr 25, 2022
@mertsincan mertsincan added this to the Future milestone Apr 25, 2022
@mertsincan
Copy link
Member

Duplicate of #31

@mertsincan mertsincan marked this as a duplicate of #31 Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Item needs to be discussed by core devs enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants