Artisteer 4 i templatka responsywna
Wyniki 1 do 5 z 5

Temat: Artisteer 4 i templatka responsywna

  1. #1
    Przeglądacz
    Dołączył
    12-03-2013
    Wpisy
    37
    Punkty
    2

    Domyślny Artisteer 4 i templatka responsywna

    Witam. Jak wyłączyć moduły w stronie aby nie wyświetlały się na urządzeniach mobilnych (tablet, phone). Mam templatkę dostosowaną do urządzeń mobilnych ale wpisywanie w przedrostkach klas nie daje rezultatu.

  2. Pani Reklamowa
    Pani Reklamowa jest aktywna
    Avatar Panny Google

    Dołączył
    19-08-2010
    Skąd
    Internet
    Postów
    milion
    Pochwał
    setki
  3. #2
    Senior Gall Anonim awatar
    Dołączył
    19-10-2010
    Wpisy
    6 947
    Punkty
    447

    Domyślny

    advanced module manager

  4. #3
    Wyjadacz souacz awatar
    Dołączył
    30-07-2009
    Skąd
    Poznań
    Wpisy
    714
    Punkty
    77

    Domyślny

    daje rezultat, musisz pogłówkować trochę. Np dopisujesz w template.responsive.css

    Kod:
    .responsive .notelefon{
    display: none !important;
    }
    i w stylu css modułu podajesz " notelefon" (koniecznie ze spacją przed)

    albo

    Kod:
    .responsive.responsive-phone .mini{
       display: none !important;
    }
    i wtedy dopisjesz " mini" w css modułu i nie wyświetla Ci tylko na malutkich ekranach (na tabletach wyświetla)

    albo
    Kod:
    .responsive.responsive-phone .responsive-nav ul.art-hmenu {
       display: none !important;
    }
    i wtedy na malutkich nie wyświetla Ci menu poziomego (tego, które skrypt przekształca na pionowe na małych ekranach)

    a jak chcesz np wyświetlić coś tylko na telefonie i tablecie ale na PC już nie to dopisujesz np

    Kod:
    .responsive .telefon{
    display: block !important;
       position: relative !important;
       margin: 1% auto !important;
       width: 100% !important;
    }
    a w template css
    Kod:
    .telefon
    {display: none !important;
    }
    i wtedy po wpisaniu w module stylu " telefon" moduł będzie wyświetlany tylko na mobilnych

    Kluczem jest tu "!important" bo inaczej będzie Ci dzierżawić styl i ta spacja przed nazwą stylu w panelu modułu

    Możesz też w panelach modułu łączyć klasy np. "art-venu notelefon" i wtedy nie będzie Ci wyświetlać menu pionowego na mobilnych. Przed "art-" nie ma nigdy spacji ale przed "telefon" musi już być.
    Ostanio edytowane przez souacz : 12-12-2013 02:17
    c'est la żizń...

  5. #4
    Przeglądacz
    Dołączył
    12-03-2013
    Wpisy
    37
    Punkty
    2

    Domyślny

    Dzięki wielki wielkie za pomoc, lecz nie jestem znawcą a potrzebuję tylko posiadać możliwość wyłączenia kilku modułó na telefonie i tablecie. Skopiowałem kod z css/template.responsive.css pokierujesz mnie gdzie co wkleić i co wpisać w module?
    Kod:
    /* Created by Artisteer v4.1.0.59861 */
    
    .responsive body
    {
       min-width: 240px;
    }
      
    .responsive .art-content-layout img,
    .responsive .art-content-layout video
    {
       max-width: 100%;
       height: auto !important;
    }
    
    .responsive.responsive-phone .art-content-layout img 
    {
       float: none !important;
    }
        
    .responsive .art-content-layout .art-sidebar0, 
    .responsive .art-content-layout .art-sidebar1, 
    .responsive .art-content-layout .art-sidebar2 
    {
       width: auto !important;
    }
        
    .responsive .art-content-layout, 
    .responsive .art-content-layout-row, 
    .responsive .art-layout-cell 
    {
       display: block;
    }
        
    .responsive .image-caption-wrapper 
    {
       width: auto;
    }
    
    .responsive.responsive-tablet .art-vmenublock,
    .responsive.responsive-tablet .art-block
    {
       margin-left: 1%;
       margin-right: 1%;
       width: 48%;
       float: left;
       -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
       box-sizing: border-box;
    }
    
    .responsive .art-responsive-embed 
    {
       position: relative;
       padding-bottom: 56.25%;
       /* 16:9 */
      height: 0;
    }
    
    .responsive .art-responsive-embed iframe,
    .responsive .art-responsive-embed object,
    .responsive .art-responsive-embed embed
    {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
    }
    
    .responsive .art-sheet
    {
       width: auto !important;
       min-width: 240px !important;
       max-width: none;
       margin-right: 1% !important;
       margin-left: 1% !important;
       margin-top: 1% !important;
    }
    
    #art-resp {
       display: none;
    }
    
    @media all and (max-width: 899px)
    {
        #art-resp, #art-resp-t { display: block; }
        #art-resp-m { display: none; }
    }
    
    @media all and (max-width: 480px)
    {
        #art-resp, #art-resp-m { display: block; }
        #art-resp-t { display: none; }
    }
    
    /* dynamic width nav */
    .art-nav .art-menu-btn 
    {
       border: 1px solid #404040;
       border-radius: 3px;
       box-shadow: 0 0 3px 0 rgba(0, 0, 0, .2);
       display: none;
       background: -ms-linear-gradient(top, #707070 0, #000 100%);
       background: -moz-linear-gradient(top, #707070 0, #000 100%);
       background: -o-linear-gradient(top, #707070 0, #000 100%);
       background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #707070), color-stop(1, #000));
       background: -webkit-linear-gradient(top, #707070 0, #000 100%);
       background: linear-gradient(to bottom, #707070 0, #000 100%);
       margin: 3px;
       padding: 5px;
       position: relative;
       width: 20px;
    }
    
    .art-nav .art-menu-btn span 
    {
       background: #E0E0E0;
       border-radius: 2px;
       display: block;
       height: 3px;
       margin: 3px 1px;
       position: relative;
       -moz-transition: background .2s;
       -o-transition: background .2s;
       -webkit-transition: background .2s;
       transition: background .2s;
    }
    
    .art-nav .art-menu-btn:hover span
    {
       background: #f3f3f3;
    }
    
    .responsive .art-nav .art-menu-btn 
    {
       display: inline-block;
    }
    
    .responsive nav.art-nav,
    .responsive .art-nav-inner
    {
       width: auto !important;
       position: relative !important;
       top: auto !important;
       left: auto !important;
       right: auto !important;
       bottom: auto !important;
       margin-top: 0;
       margin-bottom: 0;
       min-width: 0;
       text-align: center !important;
    }
    
    .responsive nav.art-nav
    {
       min-width: 1%;
    }
    
    .responsive .art-nav 
    {
       padding-left: 0;
       padding-right: 0;
       padding-top: 5px;
       padding-bottom: 5px;
    }
     
    /* full width hmenu, instead of inline-block */
    .responsive .art-nav ul.art-hmenu 
    {
       display: none;
       float: none;
       text-align: center;
    }
    
    .responsive .art-nav .art-hmenu.visible 
    {
       display: block;
    }
    
    /* elements on different lines */
    .responsive .art-nav ul.art-hmenu li,
    .art-hmenu-extra1,
    .art-hmenu-extra2
    {
       float: none;
    }
      
    /* horizontal margins */
    .responsive .art-nav ul.art-hmenu>li:first-child, 
    .responsive .art-nav ul.art-hmenu>li:last-child, 
    .responsive .art-nav ul.art-hmenu>li
    {
       margin-left: 0;
       margin-right: 0;
    }
     
    /* separator */ 
    .responsive .art-nav ul.art-hmenu>li:before
    {
       display: none;
    }
    
    /* vertical distance between items */
    .responsive .art-nav ul.art-hmenu a
    {
       margin-top: 1px !important;
       margin-bottom: 1px !important;
       text-align: center !important;
       height: auto;
       white-space: normal;
    }
    
    .responsive .art-nav ul.art-hmenu>li:first-child>a
    {
       margin-top: 0 !important;
    }
    
    .responsive .art-nav ul.art-hmenu>li:last-child>a
    {
       margin-bottom: 0 !important;
    }
    
    /* fixes for extended menu */
    .responsive .art-nav .ext, 
    .responsive .art-nav ul.art-hmenu>li>ul, 
    .responsive .art-nav ul.art-hmenu>li>ul>li,
    .responsive .art-nav ul.art-hmenu>li>ul>li a
    {
       width: auto !important;
    }
    
    /* submenu position on hover */
    .responsive .art-nav ul.art-hmenu ul
    {
       left: auto !important;
       right: auto !important;
       top: auto !important;
       bottom: auto !important;
       display: none !important;
       position: relative !important;
       visibility: visible !important;
    }
    
    .responsive .art-nav ul.art-hmenu>li>a
    {
       border-bottom: 2px solid #696969;
       padding-bottom: 0 !important;
       margin-bottom: 0 !important;
    }
    
    .responsive .art-nav .art-hmenu>li>a
    {
       border-radius: 10px;
    }
    
    .responsive .art-nav ul.art-hmenu>li>a.active
    {
       border-bottom: 2px solid transparent;
    }
    
    .responsive .art-nav ul.art-hmenu>li>a:hover
    {
       border-bottom: 2px solid #9EDB06;
    }
    
    .responsive .art-nav ul.art-hmenu>li>ul>li:first-child:after 
    {
       display: none;
    }
    .responsive .art-nav ul.art-hmenu ul a
    {
       padding-left: 4% !important;
    }
    .responsive .art-nav ul.art-hmenu ul ul a
    {
       padding-left: 6% !important;
    }
    .responsive .art-nav ul.art-hmenu ul ul ul a
    {
       padding-left: 8% !important;
    }
    .responsive .art-nav ul.art-hmenu ul ul ul ul a
    {
       padding-left: 10% !important;
    }
    .responsive .art-nav ul.art-hmenu ul ul ul ul ul a
    {
       padding-left: 12% !important;
    }
      
    .responsive .art-nav ul.art-hmenu>li>ul
    {
       padding: 10px;
    }
      
    .responsive .art-nav ul.art-hmenu>li>ul:before
    {
       top: 0;
       right: 0;
       bottom: 0;
       left: 0;
    }
    
    .responsive .art-header 
    {
       width: auto;
       height: auto;
       min-height: 100px;
       min-width: 1%;
       background-position: center center !important;
       background-size: cover !important;
       background-repeat: repeat !important;
    }
    
    .responsive .art-header .art-headline, 
    .responsive .art-header .art-slogan 
    {
       display: block !important;
       top: 0 !important;
       left: 0 !important;
       margin: 2% !important;
    }
        
    .responsive .art-header .art-headline a, 
    .responsive .art-header .art-slogan 
    {
       white-space: normal !important;
    }
      
    .responsive .art-header *
    {
       position: relative;
       text-align: center;
       -webkit-transform: none !important;
       -moz-transform: none !important;
       -o-transform: none !important;
       -ms-transform: none !important;
       transform: none !important;
    }
    
    .responsive .art-header #art-flash-area,
    .responsive .art-header .art-shapes>*
    {
       display: none;
    }
    
    .responsive #art-header-bg 
    {
       background-position: center center !important;
       background-size: cover !important;
       background-repeat: repeat !important;
    }
    
    /* Search and other elements in header element directly */
    .responsive .art-header>.art-textblock
    {
       position: relative !important;
       display: block !important;
       margin: 1% auto !important;
       width: 75% !important;
       top: auto !important;
       right: auto !important;
       bottom: auto !important;
       left: auto !important;
    }
    
    /* For icons like facebook, rss, etc. */
    .responsive .art-header>.art-textblock>div 
    {
       width: 100%;
    }
    .responsive .art-content-layout, 
    .responsive .art-content-layout-row, 
    .responsive .art-layout-cell 
    {
       display: block;
    }
    
    .responsive .art-layout-cell 
    {
       width: auto !important;
       height: auto !important;
       border-right-width: 0 !important;
       border-left-width: 0 !important;
       border-radius: 0 !important;
    }
    
    .responsive .art-content-layout:after, 
    .responsive .art-content-layout-row:after, 
    .responsive .art-layout-cell:after 
    {
       content: ".";
       display: block;
       height: 0;
       clear: both;
       visibility: hidden;
    }
    
    .responsive .art-post
    {
       border-radius: 0;
    }
    
    .responsive .art-footer-inner
    {
       min-width: 0;
    }
    .responsive .art-footer
    {
       margin-top: 1%;
    }
    
    .responsive .responsive-tablet-layout-cell 
    {
       width: 50% !important;
       float: left;
       -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
       box-sizing: border-box;
    }

  6. #5
    Wyjadacz souacz awatar
    Dołączył
    30-07-2009
    Skąd
    Poznań
    Wpisy
    714
    Punkty
    77

    Domyślny

    ok, najpierw musisz wymyślić sobie nowe nazwy klas i dopisać je w pliku (dopisz na końcu w takiej formie jak Ci napisałem)

    Czyli np. dodajemy klasę "telefon" która będzie oznaczać to, że moduł z tą klasą nie będzie wyświetlać się w wersji telefoniczno-tabletowej, dopisz to na końcu w pliku css/template.responsive.css

    Kod:
    .responsive .telefon
    {
    display: none !important;
    }
    I w panelu modułu w adminie wpisujesz wtedy klasę telefon , koniecznie ze spacją na początku.

    lub np możesz zdefiniować to tak:

    Kod:
    .responsive.responsive-phone .telefon
    {
       display: none !important;
    }
    Wtedy moduł będzie wyświetlany na tabletach i PC (większe ekrany) ale na małych (telefony) już nie.
    Ostanio edytowane przez souacz : 12-12-2013 23:11
    c'est la żizń...

Podobne tematy

  1. Grafika responsywna - co polecacie?
    przez nigraS na forum Rozszerzenia - problemy z obsługą, zarządzaniem
    Odpowiedzi: 7
    Ostatni post/autor: 09-06-2013, 21:21
  2. Artisteer
    przez RudyPL na forum Szablony, wygląd, formatowanie
    Odpowiedzi: 9
    Ostatni post/autor: 24-04-2011, 15:28
  3. artisteer 2
    przez Rasaczz na forum Szablony, wygląd, formatowanie
    Odpowiedzi: 1
    Ostatni post/autor: 29-09-2010, 16:15
  4. Szablon z Artisteer.
    przez pix3lek na forum Szablony, wygląd, formatowanie
    Odpowiedzi: 1
    Ostatni post/autor: 29-09-2010, 14:47
  5. Artisteer 2.0 templatka problem w IE8
    przez frytkens na forum Szablony, wygląd, formatowanie
    Odpowiedzi: 2
    Ostatni post/autor: 28-12-2009, 17:19

Reguły pisania

  • Nie możesz zakładać nowych tematów
  • Nie możesz dodawać wypowiedzi
  • Nie możesz dodawać załączników
  • Nie możesz poprawiać swoich postów
  •