Mea fa'asalalau
Faʻamaumauga ma faʻataʻitaʻiga mo le mea faʻasalalau a Bootstrap e fausia ai vaega sili ona fai soo e pei o faʻamatalaga blog, tweets, ma mea faapena.
Faataitaiga
O le mea fa'asalalau e fesoasoani i le fausiaina o vaega lavelave ma fai fa'asolo lea o lo'o tu'u ai nisi fa'asalalauga fa'atasi ma mea e le o afifi ai fa'asalalauga fa'apea. Ma le isi, e faia lenei mea i na'o le lua vasega mana'omia fa'afetai ile flexbox.
Lalo o se faʻataʻitaʻiga o se mea faʻasalalau e tasi. E na'o le lua vasega e mana'omia-o le afifiina .media
ma le .media-body
fa'ata'amilo o au mea. E mafai ona fa'atonutonuina le fa'alava ma le pito e filifili e ala ile fa'aogaina ole avanoa .
Ulutala fa'asalalau
Pe e te faia ea faapena mo aʻu? Ua oo i le taimi e feagai ai ma musika ua le toe avea au ma au musika. Fa'alogo e manaia, fai ma fa'amasino ae fai se palota a'u teine. E mafai ona ou lagonaina se phoenix i totonu ia te au. E lotoleaga le lagi i lo tatou alofa, o loo fetagisi agelu mai luga. Ioe, e te ave au i le utopia.
<div class="media">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Media heading</h5>
<p>Will you do the same for me? It's time to face the music I'm no longer your muse. Heard it's beautiful, be the judge and my girls gonna take a vote. I can feel a phoenix inside of me. Heaven is jealous of our love, angels are crying from up above. Yeah, you take me to utopia.</p>
</div>
</div>
Flexbug #12: O elemene i totonu e le fa'atatauina o ni mea fa'alelei
Internet Explorer 10-11 e le fa'aliliuina elemene fa'asinotonu e pei o so'otaga po'o ata (po'o ::before
ma ::after
pseudo-elements) o ni mea fa'alelei. Pau lava le fofo ole setiina o se tau e le o totonu display
(fa'ata'ita'iga, block
, inline-block
, poʻo flex
). Matou te fautua atu e faʻaaoga .d-flex
, se tasi o matou faʻaaliga faʻaoga , e fai ma faʻaoga faigofie.
Punavai: Flexbugs ile GitHub
Faamoega
O mea fa'asalalau e mafai ona fa'aputuina e le gata, e ui lava matou te fautua atu e te tu i se taimi. Tu'u fa'amoega .media
i totonu .media-body
o se mea fa'asalalau matua.
Ulutala fa'asalalau
Tu i le laina pito i luma pe a amata ona pa'u pomu. E lotoleaga le lagi i lo tatou alofa, o loo fetagisi agelu mai luga. E le mafai ona suitulaga oe i le miliona mama. Tama, a e faatasi ma a'u ou te tofo ia te oe. E leai se toe fo'i i tua. Ae e te lei feiloai ia te au sa ou lelei ae sa fai si mamafa o mea. E mamafa le ulu e ofuina le pale.
Ulutala fa'asalalau
Talofa e pele ia tatou malaga. Ioe, tatou te faia agelu ma fetagisi, ma timu mai luga i le lalolagi. Tuuina atu ia te oe se mea lelei e faamanatu ai. Sa masani ona ou utia lo'u laulaufaiva ma taofi lo'u manava. Ou te faia lou fatu i totonu o lo'u ofuvae fuifui. A'o ou savali na'o a'u i se tu'i ese. Summer ina ua uma le aoga maualuga i le taimi muamua na matou feiloai ai. E te matua fa'asala, e mafai ona avea oe ma tiapolo? Mata e mafai ona avea oe ma se agelu? Ua oo i le taimi e aumai ai i fafo paluni tetele. Na ou manatu o aʻu o se tuusaunoaga. Bikinis, zucchinis, Martinis, leai ni uo.
<div class="media">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Media heading</h5>
<p>Standing on the frontline when the bombs start to fall. Heaven is jealous of our love, angels are crying from up above. Can't replace you with a million rings. Boy, when you're with me I'll give you a taste. There’s no going back. Before you met me I was alright but things were kinda heavy. Heavy is the head that wears the crown.</p>
<div class="media mt-3">
<a class="mr-3" href="#">
<img src="..." alt="...">
</a>
<div class="media-body">
<h5 class="mt-0">Media heading</h5>
<p>Greetings loved ones let's take a journey. Yes, we make angels cry, raining down on earth from up above. Give you something good to celebrate. I used to bite my tongue and hold my breath. I'm ma get your heart racing in my skin-tight jeans. As I march alone to a different beat. Summer after high school when we first met. You're so hypnotizing, could you be the devil? Could you be an angel? It's time to bring out the big balloons. Thought that I was the exception. Bikinis, zucchinis, Martinis, no weenies.</p>
</div>
</div>
</div>
</div>
Fa'atonuga
O ala fa'asalalau i totonu o se mea fa'asalalau e mafai ona fa'aogaina ma fa'aoga flexbox i le pito i luga (fa'aletonu), ogatotonu, po'o le pito o au .media-body
mea.
Fa'asalalau pito i luga
O le a ou tu'uina o ia i se koma. E te tu'uina atu le selau o mafua'aga, ma e te fai mai o le a e taumafai moni lava. O lea na ou nofo filemu ai, ioe ma le faaaloalo. E fetaui mo la'u taua faapaleina. Ma i lo'u 18 tausaga na matou maua ai pe'a tutusa. E matua manaia lava, ioe, o ia o se masani. Ua ou sauni mo le auala e tau le feoai.
O loo ou savali i luga o le ea (nanei). Ae i lalo i le lalolagi. O oe o le mea muamua, e le mafai ona suia. Ae i se isi olaga o le a avea aʻu ma ou teine. Sa matou tietie atu i Cali ma onana ai i luga o le matafaga. E mafai ona tatou sisiva, seia tatou oti, o oe ma au, o le a talavou e faavavau. Va'ai oe i le taulaga o usuina le Blues.
<div class="media">
<img src="..." class="align-self-start mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Top-aligned media</h5>
<p>I’m gon’ put her in a coma. You give a hundred reasons why, and you say you're really gonna try. So I sat quietly, agreed politely. Suiting up for my crowning battle. And on my 18th Birthday we got matching tattoos. So très chic, yeah, she's a classic. I am ready for the road less traveled.</p>
<p>I'm walking on air (tonight). But down to earth. You're original, cannot be replaced. But in another life I would be your girl. We drove to Cali and got drunk on the beach. We can dance, until we die, you and I, will be young forever. Saw you downtown singing the Blues.</p>
</div>
</div>
Fa'asalalauga fa'aogatotonu
O le a maalili o ia e pei o se pusaaisa. I le e-i'uga o mea uma. O le tui pei o se pi na ou maua ai o'u ta. Bikinis, zucchinis, Martinis, leai ni uo. Ou te faʻamoemoe o loʻo e maua se manaʻo maloloina. E mafai ona tatou sisiva, seia tatou oti, o oe ma au, o le a talavou e faavavau. O loo tatou ola i le olaga. O lo'o matou faia sa'o. Upu i luga o le auala, o loʻo ia te oe se mea e faʻaali mai ia te aʻu, ia te aʻu.
Mana'o e matamata i le fa'aaliga i le 3D, o se ata tifaga. Latou te fai mai, ia e fefe e te le pei o isi, le fiafia i le lumanaʻi. Tatala lou loto. O lea na ou nofo filemu ai, ioe ma le faaaloalo. O le po o le Aso Faraile talu ai. Ioe, e te laki pe a e i luga o lana vaalele. O le a avea au ma au meaalofa, avatu ia te oe se mea lelei e faamanatu ai.
<div class="media">
<img src="..." class="align-self-center mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Center-aligned media</h5>
<p>She'll turn cold as a freezer. At the eh-end of it all. Stinging like a bee I earned my stripes. Bikinis, zucchinis, Martinis, no weenies. I hope you got a healthy appetite. We can dance, until we die, you and I, will be young forever. We're living the life. We're doing it right. Word on the street, you got somethin' to show me, me.</p>
<p class="mb-0">Wanna see the show in 3D, a movie. They say, be afraid you're not like the others, futuristic lover. Open up your heart. So I sat quietly, agreed politely. Last Friday night. Yeah, you're lucky if you're on her plane. I'll be your gift, give you something good to celebrate.</p>
</div>
</div>
Ala fa'asalalau fa'asaga i lalo
Sau ia, ia pa'u ou lanu. E mafai ona ou lagonaina lenei malamalama o loo i totonu ia te au. O le po atoa latou te taaalo, lau pese. Mai Tokyo i Mekisiko, i Rio. E leai se toe fo'i i tua. Ae i lalo i le lalolagi. Fa'ailoga, felanulanua'i, Mr. Mystery, ee. E ese le DNA, latou te le malamalama ia te oe.
Ae i lalo i le lalolagi. Ua ia te ia lena, je ne sais quoi, e te iloa. E mafai ona ou iloa atu tusitusiga i luga o le puipui. Ua gau le ua o tama e taumafai e fetolofi teisi. Ave a'u, ta-ta-ave a'u. Tatala lou loto. Na ou manatu o aʻu o se tuusaunoaga. Boom, boom, boom. Venise matafaga ma Palm Springs, taumafanafana o mea uma. Toe aumai le sasa. (O le auala lenei tatou te faia)
<div class="media">
<img src="..." class="align-self-end mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Bottom-aligned media</h5>
<p>Come on, let your colours burst. I can feel this light that's inside of me. All night they're playing, your song. From Tokyo to Mexico, to Rio. There’s no going back. But down to earth. Magical, colorful, Mr. Mystery, ee. Different DNA, they don't understand you.</p>
<p class="mb-0">But down to earth. She's got that, je ne sais quoi, you know it. I can see the writing on the wall. The boys break their necks try'na to creep a little sneak peek. Take me, ta-ta-take me. Open up your heart. Thought that I was the exception. Boom, boom, boom. Venice beach and Palm Springs, summertime is everything. Bring the beat back. (This is how we do)</p>
</div>
</div>
Poloaiga
Suia le fa'asologa o anotusi i mea fa'asalalau e ala i le suia o le HTML lava ia, po'o le fa'aopoopoina o se custom flexbox CSS e fa'atulaga ai le order
meatotino (i le numera o lau filifiliga).
Mea fa'asalalau
Ou te iloa o le ai ai le ositaulaga ae o le tau lena. O e lototele ea e tuu mai ia te au ou te vaai i lau pao? Avea ma au miti talavou i lenei po. Uh-huh, ua ou vaai ia te oe. E leai se toe fo'i i tua. Ioe, ua sili atu a matou kata fai aitalafu ma tuli ese ai mai le pa. Se'i ou avatu oe i lou suti o lou aso fanau. Atonu e te alofa pe a lua feiloaʻi ma ia. Sa i ai le lalolagi i ou alofilima. Aua ne'i avea le silisili ona fa'ato'ilaloina oe, oi, ioe. O lea ua matou talanoa i fetu, faia o matou fao, uma Iapani-y. Fai a'u ma ou Aphrodite.
<div class="media">
<div class="media-body">
<h5 class="mt-0 mb-1">Media object</h5>
<p>I know there will be sacrifice but that's the price. Are you brave enough to let me see your peacock? Be your teenage dream tonight. Uh-huh, I see you. There’s no going back. Yeah, we maxed our credit cards and got kicked out of the bar. So let me get you in your birthday suit. You may fall in love when you meet her. Had the world in the palm of your hands. Don't let the greatness get you down, oh, oh yeah. Now we talking astrology, getting our nails did, all Japanese-y. Make me your Aphrodite.</p>
</div>
<img src="..." class="ml-3" alt="...">
</div>
Lisi fa'asalalau
Talu ai ona o le mea faʻasalalau e itiiti lava le manaʻoga, e mafai foi ona e faʻaogaina nei vasega ile lisi elemene HTML. I luga o lau <ul>
po'o <ol>
, fa'aopoopo le .list-unstyled
e aveese so'o se su'esu'ega fa'aletonu lisi sitaili, ona fa'aoga lea .media
i lau <li>
s. E pei lava o taimi uma, fa'aoga avanoa avanoa i so'o se mea e mana'omia e fa'alelei ai.
-
Lisi mea fa'asalalau fa'asalalau
O la'u tama teine tuai Chanel pepe. O lea e mafai ona e maua lau keke. O le po nei, o le po nei, o le po nei, o lo'o ou savali i luga o le ea. Na folo lemu lo'u fefe, ioe ioe. Fa'atupula'ia vave e pei o se uila. E matua vevela ma mamafa, 'Se'ia tafa ata. O lena tala faafagogo na faaiuina i se fitafita i lona ofutau susulu. E mamafa le ulu e ofuina le pale.
-
Lisi mea fa'asalalau fa'asalalau
Atonu o se mafuaaga ua tapunia uma ai faitotoa. Aua o le taimi lava e avea ai oe ma aʻu, o le taimi lava e te aʻu. Avea ma au miti talavou i lenei po. E mamafa le ulu e ofuina le pale. E le o se aso malolo, leai se mea e faamanatu ai. O se afa atoatoa, afa atoatoa.
-
Lisi mea fa'asalalau fa'asalalau
O e lototele ea e tuu mai ia te au ou te vaai i lau pao? E leai se toe fo'i i tua. O le taimi mulimuli lea e te fai atu ai, pe a uma le laina mulimuli e te motusia. I le e-i'uga o mea uma.
<ul class="list-unstyled">
<li class="media">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0 mb-1">List-based media object</h5>
<p>All my girls vintage Chanel baby. So you can have your cake. Tonight, tonight, tonight, I'm walking on air. Slowly swallowing down my fear, yeah yeah. Growing fast into a bolt of lightning. So hot and heavy, 'Til dawn. That fairy tale ending with a knight in shining armor. Heavy is the head that wears the crown.</p>
</div>
</li>
<li class="media my-4">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0 mb-1">List-based media object</h5>
<p>Maybe a reason why all the doors are closed. Cause once you’re mine, once you’re mine. Be your teenage dream tonight. Heavy is the head that wears the crown. It's not even a holiday, nothing to celebrate. A perfect storm, perfect storm.</p>
</div>
</li>
<li class="media">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0 mb-1">List-based media object</h5>
<p>Are you brave enough to let me see your peacock? There’s no going back. This is the last time you say, after the last line you break. At the eh-end of it all.</p>
</div>
</li>
</ul>