Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DFA7C200BA8 for ; Mon, 24 Oct 2016 18:50:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DE325160AEB; Mon, 24 Oct 2016 16:50:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0A2E6160AD7 for ; Mon, 24 Oct 2016 18:50:58 +0200 (CEST) Received: (qmail 32319 invoked by uid 500); 24 Oct 2016 16:50:58 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 32307 invoked by uid 99); 24 Oct 2016 16:50:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2016 16:50:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 36AE5C0C69 for ; Mon, 24 Oct 2016 16:50:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1W-2M3Jo2GlH for ; Mon, 24 Oct 2016 16:50:55 +0000 (UTC) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A1DC35F570 for ; Mon, 24 Oct 2016 16:50:54 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id b80so114534186wme.1 for ; Mon, 24 Oct 2016 09:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=qEH282v+TycKOUsO+YgiUUgQhhQWMzuJ/bxZEdhOTDs=; b=bEFeKWqr6vvStK4Z4vAtbT72Lp8CbX18gCJXrjroBh41Kjfz0ljql0RWewKRfcntL3 SpfH2y+Wdur9m7E0lDyrnRCAkjOudAvPNmF8mMFGz5eOTyfmLU0yaEkYigwEKCQ554xj 9Jeu+XOA8CUUxg0B6zwh5Q2BQ+2bSBZWW6f/zTP0GNLZbKBNA99nVaIw/n1h4aEybz38 ZD8AzvEWAghYEIpIqPehbLu9K45wUQOzCv482eUJzOLX9JHu7fy7j2PBSE08YSvnQjQU EE/D5pP1/Zfth32yYXgASALyv5zaV5ebwJ1LY/j3RlFApD3/XiimT1zFjoohCxRAyDBp OU5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=qEH282v+TycKOUsO+YgiUUgQhhQWMzuJ/bxZEdhOTDs=; b=Vx/+8O9l8mYA4eRu7gqvotMFvpBT4ZJgg2M6ulS6ToV1VUyxSQHHUYHvH3Za8CFVLS m/LBnZwng8o1+Y3xn/2Z3slbRmTfzp9RaE9l7YHHh9Gm3QyCmlrRegZSZEAFtxDm0nGr DG4klTq1/LRjxEnJEub/nfcQbUc6lrXUjgvJdkw8jbMpxmnPBTuVZiPu3uHani7pOymv gxhXMX5MON9O+vkB6NAVUyguEuquT4aEx3uvLcQVeFQum3by4KBUQJFULLPxptuk5NuO 8YWP4WQGXl4QtwLYNagM0PemscgwqEkIOJaeaPoyJPTpkIFbCUO3N4KrsfJNG5XGxEe4 6ngg== X-Gm-Message-State: ABUngvfCvS5FVrt/WNeUyqWbYLh7pDATbBGNugg+CPtO4V8ez6GbLkLnHH5ElX+o7i5VDV8ZeTsAgZ1BvnPggg== X-Received: by 10.194.104.232 with SMTP id gh8mr12758814wjb.49.1477327851706; Mon, 24 Oct 2016 09:50:51 -0700 (PDT) MIME-Version: 1.0 Sender: carlos.rovira@gmail.com Received: by 10.28.113.87 with HTTP; Mon, 24 Oct 2016 09:50:31 -0700 (PDT) In-Reply-To: References: From: Carlos Rovira Date: Mon, 24 Oct 2016 18:50:31 +0200 X-Google-Sender-Auth: _dnmm_bKS6t5EdoxfeQp6Q6Rc20 Message-ID: Subject: Re: [FlexJS] CSS (was Re: [FlexJS] Mobile Apps) To: "dev@flex.apache.org" Content-Type: multipart/alternative; boundary=089e010d829cd15eb0053f9f31b0 archived-at: Mon, 24 Oct 2016 16:51:00 -0000 --089e010d829cd15eb0053f9f31b0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Alex, I think I'll stick with the actual impl for the moment, maybe flags could be good...Others don't like since I think are or very verbose or many combinations... btw, I was trying to get -compiler.exclude-defaults-css-files=3DHTML.swc:defaults.css without luck, but is clear this is a must, since If I add DataGrid, or whatever, it brings all selectors I don0t want. So hope you get why is not working. in the mean while, I'll try to continue my way trying to skip those styles if I can. 2016-10-24 18:40 GMT+02:00 Alex Harui : > > > On 10/24/16, 9:17 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira= " > > wrote: > > >Ok, I see, > > > >right now I'm using something like you say: > > > >while the base class selectors are asigned in AS3 MDL Button Code > >component: > > > >element.className =3D 'mdl-button mdl-js-button'; > > > >In example's use I specialize, since there is 8 selectors, and seems to = me > >many combinations to make classes, So: > > > > > > >mdl-button--colored"> > > add > > > > > > > > >mdl-js-ripple-effect"> > > face > > > > > >So you think this is the best we could get to simplify? > > > > It is sort of up to you. This is a good example about how MXML affects > pay-as-you-go code and usability. > > Like I said, you really could have 8 different buttons. Then the MXML > would be really easy to read: > > > > > But it looks like you would rather create a new property called mdlEffect > and assign some classNames there. And that's fine, but then you were > tempted to add comments about what each button was going to look like, an= d > the MXML wasn't as easy to read. Folks would have to remember the names > of the MDL selectors, and not mis-type them. > > So you could even create other boolean properties like "ripple" and "fab" > that under the covers would assign the classNames. Then the MXML would > look like: > > > > > Easier to read as well, but then you've baked in what fab and ripple does > and if some new version of MDL has some new 'effect' like 'awesome', you > have to update your component set to add a new property. Folks can still > use the className property and you have to document the order in which > these properties and className will end up as the actually className in > HTML DOM, and that may not be as flexible as just having everyone put the > list in the order they want. However, they can always fall back to using > none of the options and just setting className in the order they want. > > You could also create beads for each of the flavors. Then the MXML > becomes more verbose: > > > > > > > > > > > > > > But then you can just release an "AwesomeStyle" bead later. > > I don't think there is a "right" answer. You can even offer all of the > above. This another reason why FlexJS doesn't try to settle on one > default component set. There can be multiple different implementations o= f > MDL components and folks will figure out for themselves which ones they > like to work with. > > > -Alex > > --=20 Carlos Rovira Director General M: +34 607 22 60 05 http://www.codeoscopic.com http://www.avant2.es Este mensaje se dirige exclusivamente a su destinatario y puede contener informaci=C3=B3n privilegiada o confidencial. Si ha recibido este mensaje p= or error, le rogamos que nos lo comunique inmediatamente por esta misma v=C3= =ADa y proceda a su destrucci=C3=B3n. De la vigente Ley Org=C3=A1nica de Protecci=C3=B3n de Datos (15/1999), le c= omunicamos que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la prestaci=C3=B3n del servicio o informaci=C3=B3n solicitados, teniendo usted derecho de acceso, rectificaci=C3=B3n, cancelaci=C3=B3n y oposici=C3=B3n de sus datos dirigi= =C3=A9ndose a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentaci=C3=B3= n necesaria. --089e010d829cd15eb0053f9f31b0--